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:
- 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.
- Specify the actions to take when the breakpoint is hit:
-
Suspend Debugging. If selected, all threads in the debugging session are temporarily stopped when the program reaches the breakpoint.
- Print Text. If selected, the specified message is printed in the Output window
when the breakpoint is hit. You can use a combination of text,
substitution codes, curly braces and a dollar sign in the message.
An example is {$mywatch}.
- Click OK.
The breakpoint is added to the Breakpoints view of the Debugger
window.
Legal Notices