Debug View
The Debug view provides a graphical representation of the call stack of your program and the place where the IDL interpreter has stopped, either due to an error in the code or a breakpoint you inserted. At the bottom of the call stack is IDL's $MAIN$ context. A program called from $MAIN$ sits "on top" of $MAIN$ in the call stack; similarly, programs called from other programs sit "above" in the stack. For example, the following image of the Debug view depicts execution stopped in a routine called IDLNETURL_WIDGET, which was called from the IDL command line ($MAIN$).

The Debug view works in concert with other views to provide diagnostic information about your program. For example, variables for the current program scope are displayed in the Variables view, and breakpoints are listed in the Breakpoints view. The source editor indicates the current line being executed, and displays breakpoints in the left margin.
By default, the Debug view is only included in the Debug perspective. To add the Debug view to the IDL perspective:
- Select Window → Show View → Other.
- Select Debug → Debug.
The Show View dialog displays.
Toolbar
The toolbar of the Debug view contains the following buttons:

Note
The execution commands (Resume, Terminate, and so on) are also located on the main menu's Run menu.