If you want to monitor the value of a variable or expression while you debug your code, add a watch to the Watch List. The Watch List window displays the current value of the watch expression based on the scope of the execution point. Once per frame, or after each single cycle step, the debugger evaluates all the items listed in the Watch List and updates their displayed values.
The Watch List
You can set a watch expression using the Run..Add Watch menu item, or by right-clicking within the Watch List. Either method will display the Watch Properties dialog, which will allow you to configure the watch. ou can also set a watch and specify its properties on the Watch Properties dialog box.
The context menu in the Watch List
The Watch Properties Dialog
Currently, watches are interpreted as expressions which will return an address. A few examples of useful watches are:
$04000000in halfword mode. This displays the DISP_CR register contents
SPin word array mode, with length = 6. This displays the top 6 words on the stack.
r0 + r4*2 + r5*256in byte mode. Perhaps a complex addressing calculation to access a texture element (it is shown here to demonstrate the versatility of expressions).
Copyright © 2001 to 2003, Bottled Light, Inc.