Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pause All Threads on Hitting Breakpoint? #722

Open
gcbartlett opened this issue Nov 25, 2019 · 7 comments
Open

Pause All Threads on Hitting Breakpoint? #722

gcbartlett opened this issue Nov 25, 2019 · 7 comments

Comments

@gcbartlett
Copy link

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).

@testforstephen
Copy link
Contributor

If we support Continue All threads feature, do you think it will mitigate the pain point in your case?

@gcbartlett
Copy link
Author

Adding Continue All Threads would be useful, but will only help in my scenario, if a breakpoint can trigger Pause All Threads.

@testforstephen
Copy link
Contributor

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.

@testforstephen testforstephen self-assigned this Jul 28, 2021
@testforstephen testforstephen added this to the Backlog milestone Jul 7, 2022
@aperrone
Copy link

News?

@robaho
Copy link

robaho commented Sep 28, 2023

This is a significant omission. It makes debugging server processes with 100's of threads near impossible.

@jdconley
Copy link

jdconley commented Nov 8, 2023

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.

@rmckewen
Copy link

After almost 5 years could we perhaps at least get a due date? This is a necessary & expected feature for debugging multi-threaded applications after all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants