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:

SESSION:DEBUG-ALERT = TRUE. 

NOTE: You can also enable this feature when you start a Progress client using the -debugalert client startup parameter

Figure 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:

  1. Choose the Help button in the Alert dialog box to open the Stack Trace dialog box.
  2. Choose the Debug button in the Stack Trace dialog box. The Stack Trace dialog box closes, and you return to the initial Alert dialog box.
  3. Choose OK in the Alert dialog box to start the Debugger.
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