|
Some of your applications may have a large number of variables. In these cases, you probably do not want to trace (watch) the values for all the variables during debugging. In Debug, you can specify the variables you want to watch.
To select the variable you want to watch, use one of the following method.
Method 1:
- Open the Variable window by clicking the Show/Hide Variables icon
in the toolbox, pressing Ctrl+V, or selecting Show Variables from the Debug Menu.
- Click the Show/Hide Watch icon in the toolbox, press Ctrl+W, or select Hide Watch from the Debug menu. PowerBuilder displays the Watch window.
- Select a variable that you want to watch by clicking the variable name.
- Click the Paste icon
in the toolbox. PowerBuilder adds the variable to the watch list.
Method 2:
- Open the Variable window by clicking the Show/Hide Variables icon in the toolbox, pressing Ctrl+V, or selecting Show Variables from the Debug Menu.
- Click the Show/HideWatch icon in the toolbox, press Ctrl+W, or select Hide Watch from the Debug menu. PowerBuilder displays the Watch window.
- Select Add Watch from the Debug Menu.
- Click the name of the type of variable you want to watch in the Variable window. PowerBuilder displays and icon and the name of the variable type in the Watch window.
- Expand the variable list in the watch window by clicking the icon next to the name of the variable type.
- Remove the variables you do not want to watch from the list. Select the variables you do not want to watch and then click the Delete icon
or select Delete Watch from the Debug menu. PowerBuilder deletes the selected variables from the watch list.
TIP: You can close the Variables window after you select the variables you want to watch. The stops remain set until you remove them and at each stop, the new variable values display automatically.
You can size the Watch window by dragging the bar at the top of the Watch window.
To delete the watch list:
Click the Show/HideWatch icon in the toolbox, press Ctrl+W, or select Hide Watch from the Debug menu. PowerBuilder closes the Watch window and deletes the watch variables list.
|