Selecting the Watch Variable
\The Sandbox \PB History & Future \New in PB 2 \Painter Features \Debug \Selecting the Watch Variable
New Select
Script Window
Editing Stops
in Debug
Modifying
Variable Values
Printing the
Variable List
Printing Watch
Variable List
Remembered
Stops
Reorganized
Menus
Selecting the
Watch Variable
Toolbox Icons
Shortcut Keys

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:

  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. 
  2. 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. 
  3. Select a variable that you want to watch by clicking the variable name. 
  4. Click the Paste icon in the toolbox.  PowerBuilder adds the variable to the watch list.

Method 2:

  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. 
  2. Click the Show/HideWatch icon in the toolbox, press Ctrl+W, or select Hide Watch from the Debug menu.  PowerBuilder displays the Watch window. 
  3. Select Add Watch from the Debug Menu. 
  4. 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.
  5. Expand the variable list in the watch window by clicking the icon next to the name of the variable type.
  6. 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.

PBL Peeper PB Help PB History
& Future About Us Feedback Site Map

Google
 
Web www.techno-kitten.com
www.sybase.com