Debugging one thread holds others?

I have a basic question. I am debugging the application and the editor shows 20 threads at a time. The control has one thread that hits the breakpoint. Will the 19 remaining 19 threads remain according to their respective instructions until the time control is the first? Or is it likely that other threads will steal some execution while I debug the first?

+4
source share
3 answers

If you ask about Visual Studio ... when it hits the breakpoint, all threads are paused. But when you go through the code, even if you are going to debug one thread, other threads also get the ability to run, this is the default behavior.

However, you can freeze individual threads in the Threads window, right-click the thread to see the context menu. Then, when you go through the code, the "frozen" threads do not start.

+3
source

All threads are suspended when the debugging breaks.

+2
source

The process usually pauses, so the whole thread pauses.

+1
source

All Articles