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:
- From the main menu, choose Debug
Add Breakpoint (Ctrl-Shift-F8).
- In the Add Breakpoint dialog box, select Thread from the Breakpoint
Type combo box.
- From the Set breakpoint on combo box, choose whether to trigger
the breakpoint when a thread starts, stops, or both.
- Select the desired actions:
- Suspend debugging temporarily stops all threads in the debugging session when the program reaches the breakpoint.
-
Print text prints a message in the Output window
when your program reaches the breakpoint. You can use a combination of text,
substitution codes, curly braces and a dollar sign in the message
(for example,
{$mywatch}
).
- Click OK.
The breakpoint is added to the list in the Breakpoints tab of the Debugger
window.
Legal Notices