Progress
Debugger Guide
Using Macros
To execute a macro definition, you can enter the macro name like any Debugger command, except that you must enter the name using the same letter case used in the definition. You must also enter the value for each Debugger variable that you use in the definition, specifying each value according to the variable’s first order of appearance in the definition. Note that each variable can reference only one value per macro or button, but you can use each variable as many times as you want in the macro or button definition.
For example, suppose that you define the following macro:
To set a breakpoint on line 16 of the procedure
arrmenu.p
and run the procedure, you must enter the SetAndGo macro command:
Note that the &FILE and &TEXT variables provide the same capabilities in a macro definition when the macro is entered as a command. That is, they each take a text value as a parameter. For example, suppose you define the following SetAndDebug macro using the SetAndGo macro. This macro sets a breakpoint in a procedure, runs the procedure, and at the next breakpoint, executes the Debugger commands in the specified command file:
To set a breakpoint on line 16 of the procedure
arrmenu.p
, run the procedure, and execute the Debugger commands incommands.txt
, you must enter the SetAndDebug macro command:
When you use a macro in a button definition, there is no need to enter parameters for the macro. As described in Table 5–5, all macro variables take their values from the listing panel when included in a button definition.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |