Setting a Breakpoint on a Thread

You can stop program execution whenever a thread in your program starts or stops.

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. Select the desired actions:
  5. Click OK.

    The breakpoint is added to the list in the Breakpoints tab 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