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
{{ message }}
Repository navigation
Line breakpoints aren't shared between processes #714
When the debuggee application has multiple processes, line breakpoints added to 1 of them won't be shared to other processes.
This will cause inconsistent breakpoint stop because only that process will stop and others won't.
To Reproduce
This issue should happen to any application that:
Has multiple processes
Uses line breakpoints
But reproducing it with VSCode is easier:
Create a new rails application
In config/puma.rb, set
threads1,1# limit the threads number to 1 will increase the reproduction chance# other configsworkers5# increase this number will also help reproduction
Start the server with bundle exec rdbg -c -- bundle exec rails s
Set a breakpoint
Attach the debugger
Sending requests to the Rails app
The breakpoint should stop at some requests but not all of them
Activity
ko1 commentedon Sep 16, 2022
For now, do not use
bothmode forfork_modeis only solution.Sync breakpoints across forked processes in fork_mode: :both
Sync breakpoints across forked processes in fork_mode: :both
Support multi-process debugging: sync breakpoints and coordinate inst…