You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Visual Studio Code doesn't respect breakpoints in child processes, such as workers and brokers, scworkercluster and sc-broker-cluster, when I try to debug SocketCluster with VS Code's internal debugger.
@seiyria The latest SC version v16 does not have this problem because it no longer spawns multiple processes (it focuses on horizontal scalability across multiple hosts instead) so we can now debug each process individually.
That said if you want to make this change and maintain it yourself in a forked repo, then we could link to this repo from the website somewhere. I just don't have the bandwidth to maintain 2 different versions of SC anymore.
@jondubois thanks for replying. If I were to fork it, it would really only be for this particular feature since I don't have the technical knowhow to really maintain SC, but if I do, I'll be sure to post back here. Thanks!
What's wrong?
Visual Studio Code doesn't respect breakpoints in child processes, such as workers and brokers, scworkercluster and
sc-broker-cluster
, when I try to debug SocketCluster with VS Code's internal debugger.How could it be fixed?
We could change a couple of lines of code, a line in
socketcluster
and a line insc-broker
from
to
and breakpoints will work as expected.
What do I propose?
To add a couple of new CLI arguments.
--inspect-brk-workers
and--inspect-brk-brokers
Checklist
--inspect-brk
--inspect-workers
and--inspect-brokers
CLI arguments should be updated as well, to comply with the original--inspect
The docs should be updated
An example
.vscode/launch.json
configuration should be added to the SocketCluster sample appThe new CLI arguments should fix is it possible to --inspect-workers and bind to 0.0.0.0 for remote debugging? #510
The text was updated successfully, but these errors were encountered: