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.
source share