Progress
Debugger Guide
Using Buttons
To execute a button definition, click on the corresponding button in the button panel. However, first ensure that values are selected in the listing panel for any Debugger variables in the button definition. (This includes any variables in macros that are part of the button definition.) For example, suppose you define a button using the SetAndGo macro defined in the "Using Macros" section.
This button sets a breakpoint on the selected line of a procedure, runs the procedure, and displays the procedure call stack at the first breakpoint. To use this button with line 16 of
arrmenu.p
, you must perform the following steps:
- Ensure that
arrmenu.p
is displayed in the listing panel using the FILE command. This provides the value for the &FILE variable,arrmenu.p
.- Place the text cursor in the listing panel on line 16 of the procedure. This selects and provides the value for the &LINE variable, 16.
- Click on the Set and Test button in the button panel. This sets the breakpoint on line 16 of
arrmenu.p
, runs the procedure, and displays the procedure call stack at the first breakpoint.Specifying Button Parameters
In general, each Debugger variable in a button definition takes its value from the contents of the listing panel when you choose the button. You can use the techniques described in Table 5–6 to assign values to these variables in the listing panel.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |