| |||
| Home > Controlling the Behavior of Breakpoints > Displaying user-defined messages when a breakpoint activates | |||
You can display your own message when a breakpoint activates. The message can be output to:
the Cmd tab of the Output view
to a user-defined window
a user-defined file.
You can display only basic messages using this method. To display more complex messages, you can use macros.
To display user-defined messages when a breakpoint activates:
Open the Create Breakpoint or Edit Breakpoint dialog box as appropriate.
Click More... on the breakpoint dialog box you are using. The breakpoint behavior controls are displayed, shown in Figure 12.5.
Click Add in the Actions group. The Add Action dialog box is displayed.
Select the Output Message action, shown in Figure 12.6.
Enter the message that you want displayed when this breakpoint activates. The message can have one of the following formats:
to
display the message in the Cmd tab of the
Output viewmessage_text
$ to
display the message in a user-defined windowwindowid$message_text
$ to
write the message to a file.fileid$message_text
For example, enter $100$this is a message to
display the text this is a message in the user-defined
window that has an ID of 100.
Click OK to close the Add Action dialog box. The action is added to the breakpoint action list, shown in Figure 12.7.
Click OK to set the breakpoint and exit the breakpoint dialog box you are using.
See also: