I'm running rails through unicorn, and it's not clear how to start the debugger when pointing to unicorn instead of rails. I assume --attach-mode can be used for this exact purpose, to start the rails and then attach to it later, but I can't find any information on how to do that, or really any user-focused documentation.
In some ways, this question is really just "where is the documentation?" After a lot of research, I am quite sure what I want to do is possible. RubyMine seems to do it automatically, it's just that VSCode users aren't typically trying to do this.
The relevant StackOverFlow question.
I am able to start using the very simple rdebug-ide -- ./bin/rails s, and then attach in VScode. It just isn't running my actual project.
I'm running rails through unicorn, and it's not clear how to start the debugger when pointing to unicorn instead of rails. I assume
--attach-modecan be used for this exact purpose, to start the rails and then attach to it later, but I can't find any information on how to do that, or really any user-focused documentation.In some ways, this question is really just "where is the documentation?" After a lot of research, I am quite sure what I want to do is possible. RubyMine seems to do it automatically, it's just that VSCode users aren't typically trying to do this.
The relevant StackOverFlow question.
I am able to start using the very simple
rdebug-ide -- ./bin/rails s, and then attach in VScode. It just isn't running my actual project.