Using SoftBench Debugger
Specifying Identifier Locations
locate. If you do not specify proc, SoftBench Debugger uses the Current Location procedure.
For example, "23" would correspond to line 23 of the file displayed in the Editable Source Area. "\\xmotion\14" would correspond to line 14 of file xmotion.c.
DDE prints locations in the Debugger Output Area using this format. You can highlight these locations using the mouse to copy them to the "()" input box for use in "Visit: Procedure ( )" and similar commands.
Specifying VariablesYou specify a variable using the same general syntax you use to specify it in the current procedure of your program. If you do not specify a complete location for a variable, SoftBench Debugger evaluates it in the scope of the Current Location.
SoftBench Debugger provides other forms for you to choose variables outside the current procedure:
Form | Description |
var | To search the stack for the most |
| recent instance of var in the current |
| procedure. If var is not a parameter |
| or local variable in the current |
| procedure, SoftBench Debugger |
| searches for a global variable named |
| var. |
\proc\var |
|
| To search for var in the most recent |
| instance of procedure proc. |
\\var | To search for the global variable var. |
`run(depth)\var |
|
| To search for var at relative stack |
| depth depth, instead of the more |
| recent instances. A depth of 2 is one |
| below the currently executing |
178 | Chapter 7 |