-
Notifications
You must be signed in to change notification settings - Fork 284
Fix the "debuggerPort" option #148
Conversation
This makes the code compile.
# Conflicts: # .travis.yml
# Conflicts: # src/ruby.ts
|
@ukblewis thanks for the turnaround! |
|
@rebornix Of course :) it's very nice to play with now and debug. Thank you! Do you have any ideas about the debugging processes that fork themselves into child processes problem? Right now this means that Rails won't debug out of the box on macOS and Linux since it defaults to a multi-process configuration (for performance and stability) but the child processes cannot be debugged properly. Having done some research, I believe that we need to configure the |
|
@ukblewis I think it's related to rdebug-ide or debase we are using, which are written in Ruby and fast implementation of ruby debug. If they don't expose proper port for different processes, then we don't have a chance to listen to them, make sense? That's how far I've gone and as I'm not a professional ruby developer, I can't provide more insights but I'll definitely share more with you once I do. |
|
Hi @rebornix I am trying to debug an application which uses Unfortunately the code I need to debug runs in the child processes and triggered when a task is submitted. Here is how my The moment I let the code continue (i.e., call the I would really appreciate if you have an idea about how to debug such an application. |

So awkwardly, I've actually found that my code for debuggerPort didn't actually work - and now that I figured out how to nicely use the VSCode debug tools, I've fixed it :)
It's only a very small change.
The only thing that I have left on my hit list is figuring out how to debug processes that fork themselves into children (e.g.
pumawithWEB_CONCURRENCY > 1). But for now, this should actually make it possible to use this for my Ruby work :)Make sure these boxes are checked before submitting your PR -- thanks in advance!