Progress
Debugger Guide
Running Procedures from the Debugger
The RUN command executes the specified procedure from the beginning. If you are already executing a procedure when you invoke the RUN command, the Debugger pushes the executing procedure onto the call stack, and begins executing the specified procedure as if it were called from the pushed procedure. If the specified procedure is the same as the pushed procedure or any other active procedure, it executes recursively. In any case, the specified procedure becomes the current procedure.
NOTE: Unlike the 4GL RUN statement, you cannot pass procedure parameters, use the PERSISTENT option, or use the IN option with the Debugger RUN command. However, you can run any internal procedure within a persistent or nonpersistent external procedure by first making the specified external procedure the current procedure. For information on setting the current procedure, see the "Examining and Navigating in the Debugger Context" section.When the specified procedure completes execution, it returns control to the Debugger at the point where it was executed with the RUN command. If there is a procedure on the procedure call stack, the Debugger reinstates it as the executing procedure with the line pointer at its current stopping point.
The Debug
Run Option
You can invoke the RUN command by choosing the Debug
Run option. The Run option opens a dialog box that prompts you for the name of your application procedure. Figure 5–3shows the Run Procedure dialog box in Windows; Figure 5–4 shows it in Motif.
Figure 5–3: Run Procedure Dialog Box in Windows
![]()
Figure 5–4: Run Procedure Dialog Box in Motif
![]()
This dialog box uses any procedure listed in the Debugger window as the default. You can change this default as needed. Choosing the Browse button opens a dialog box in which you can enter or select a different procedure filename. The Help button displays a Help window that describes how to use this dialog box.
When you choose the OK button, the Run option attempts to execute the specified procedure using the RUN command.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |