vscode-java-debug
vscode-java-debug copied to clipboard
Pause All Threads on Hitting Breakpoint?
Is it possible to configure a breakpoint (or the debugger in general) to pause all threads when a breakpoint is hit?
I have a scenario where once one of my (worker) threads hits a breakpoint, the main thread continues creating more threads that also end up hitting the same breakpoint. I can manually pause my main thread when my breakpoint is reached, but it would be nice to be able to configure the breakpoint so that all threads are automatically paused. (This would probably need to be integrated with any new Continue All action being discussed elsewhere to make it easier to resume operation).
If we support Continue All threads feature, do you think it will mitigate the pain point in your case?
Adding Continue All Threads would be useful, but will only help in my scenario, if a breakpoint can trigger Pause All Threads.
The request is to allow setting the suspend policy of the breakpoint.
- SUSPEND_ALL: Suspend all threads when the event occurs.
- SUSPEND_EVENT_THREAD: Suspend only the thread which generated the event when the event occurs.
News?
This is a significant omission. It makes debugging server processes with 100's of threads near impossible.
Just started doing some multithreaded Java dev in VS Code and hit this as well. Going to have to debug in a different IDE until this gets fixed.