Suspending Execution of a Thread

Suspending a thread is not as precise as setting a breakpoint because you cannot control exactly where a thread is executing. Suspend a thread in cases where you cannot set a breakpoint (for example, when your program encounters an infinite loop and you are not sure where to set a breakpoint).

To suspend execution of a thread:

  1. Open the Threads view of the Debugger window.
  2. Right-click a thread and choose Suspend.
Tip To suspend execution of all threads, choose Debug and choose Pause from the main window.
See also
Resuming Execution of a Thread

Legal Notices