Progress
Debugger Guide
Using the SESSION Handle with a Debugging Session
If you want alert boxes to include a Help button that provides access to a Stack Trace dialog box, use the SESSION handle and set the DEBUG-ALERT attribute to TRUE. The following shows sample code to use if you want alert boxes to include a Help button:
NOTE: You can also enable this feature when you start a Progress client using the-debugalert
client startup parameterFigure 7–1 shows an alert box with a Help button:
Figure 7–1: Alert box with Stack Trace Help Button
![]()
When you choose the Help button, a Stack Trace dialog box opens. This dialog box displays the 4GL stack trace for the currently executing Progress session. The stack trace displays procedures beginning with the root procedure as the first row and the procedure called (that is, the procedure that generated the alert box) as the last row.
Figure 7–2 shows an example of a Stack Trace dialog box:
Figure 7–2: Stack Trace Dialog Box
![]()
To start the Debugger from the Stack Trace dialog box, do the following:
NOTE: If you choose the OK button in the Stack Trace dialog box instead of the Debug button, you return to the Alert dialog box without starting the Debugger. If you choose the OK in the Alert dialog box at this point, you return to the editor from which you ran your code without starting the Debugger.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |