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. In the Debugger window, click the Threads tab.

  2. In the Threads pane, select one or more threads as follows:
    To select a single thread, click the thread.
    To extend the selection to multiple threads, Shift-click.
    To start another range, Control-click to set a new anchor point. Shift-click to end the new range.
  3. Right-click any selected thread and choose Suspend.
To suspend execution of all threads, choose Debug Suspend All Threads (Ctrl-Cancel) from the main window.
See also
Examing Threads

Resuming Execution of a Thread

Legal Notices