Setting a Breakpoint on a Thread

You can break program execution whenever a thread starts, stops, or both.

To set a breakpoint on a thread:

  1. From the main menu, choose Debug and choose Add Breakpoint (Ctrl-Shift-F8).
  2. In the Add Breakpoint dialog box, select Thread from the Breakpoint Type combo box.
  3. From the Set Breakpoint On combo box, choose whether to trigger the breakpoint when a thread starts, stops, or both.
  4. Specify the actions to take when the breakpoint is hit:
  5. Click OK.

    The breakpoint is added to the Breakpoints view of the Debugger window.

See also
Setting a Breakpoint on a Line
Setting a Breakpoint on a Method Name
Setting a Breakpoint on an Exception
Setting a Breakpoint on a Class
Setting a Breakpoint on a Variable

Legal Notices