12.3. Displaying user-defined messages when a breakpoint activates

You can display your own message when a breakpoint activates. The message can be output to:

Note

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:

  1. Open the Create Breakpoint or Edit Breakpoint dialog box as appropriate.

  2. Click More... on the breakpoint dialog box you are using. The breakpoint behavior controls are displayed, shown in Figure 12.5.

    Figure 12.5. Breakpoint behavior controls

    Breakpoint behavior controls

  3. Click Add in the Actions group. The Add Action dialog box is displayed.

  4. Select the Output Message action, shown in Figure 12.6.

    Figure 12.6. Add Action dialog box

    Add Action dialog box

  5. Enter the message that you want displayed when this breakpoint activates. The message can have one of the following formats:

    • message_text to display the message in the Cmd tab of the Output view

    • $windowid$message_text to display the message in a user-defined window

    • $fileid$message_text to write the message to a file.

    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.

  6. Click OK to close the Add Action dialog box. The action is added to the breakpoint action list, shown in Figure 12.7.

    Figure 12.7. The breakpoint action list

    The breakpoint action list

  7. Click OK to set the breakpoint and exit the breakpoint dialog box you are using.

See also:

Copyright © 2002-2009 ARM Limited. All rights reserved.ARM DUI 0153K
Non-Confidential