Skip to content

Run before attaching - ideal scenario #205

Description

@andyjeffries

So I'd love to be able to launch all my processes that constitute my app's stack (I do this using https://github.com/DarthSim/overmind) and then when I find a need a debugging situation, I can just attach using VS Code, set breakpoints and I'm off an running.

Where I'm stuck is that unless I'm misconfiguring something, VS Code has a simple attach configuration you can use, but if I start my web process locally using the following command, the debug process hangs and doesn't start the Rails process until an IDE is attached. I'd like it to run normally UNTIL it's attached.

bundle exec rdebug-ide --host 0.0.0.0 --port 1234 --dispatcher-port 26162 -- bundle exec rails s -p 5000

Is this possible with current options? Is it possible with some tweak to ruby-debug-ide? If so and I can get some guidance on where to be looking and what to do, I'll have a whack at doing it.

In talking with colleagues and international friends, it's this that stops a lot of Rails devs using ruby-debug-ide.

Activity

  1. dwarburt commented on Oct 26, 2021

    @dwarburt

    Does --skip_wait_for_start implement the behavior you're looking for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions