Top
NetCOBOL V11.0 Debugging Guide
FUJITSU Software

2.5.1 Overview of the Debugger Windows

2.5.1.1 Main Window

The main window of the debugger contains the Source File window, the Program List window, the Watch window, the Call Stack window, the Thread List window, and the Line Command window. The status bar at the bottom of the window displays program status information and an expanded explanation about the item under the mouse pointer.

The figure below shows an example of the main window.

Figure 2.3 Debugger Main Window

You can invoke debugging operations in five ways:

  1. Using menu commands: Refer to Help for details of each command.

  2. Using accelerator keys: The drop down menus show the accelerator keys beside the functions they invoke.

  3. Using toolbar buttons: Refer to Help for details of each button. You can detach and move the toolbar anywhere in the main window by dragging.

  4. Using the shortcut menu: You display the shortcut menu by clicking the right mouse button. Refer to Help for details on the shortcut menu commands.

  5. Using the Line Command window: You enter commands in this window. Refer to Help for details on the supported line commands.

2.5.1.2 Source File Window

The Source File window displays the program source and expanded copy libraries. The debugger opens one window for each program being debugged. It opens these windows automatically when execution is interrupted in programs prepared for debugging.

You can use the Program List window to open Source File windows.

You can use the shortcut menu to open library files.

See the figure below for an example of the Source File window.

Figure 2.4 A Split Source File Window

You can use a division bar to split the Source File window and view two parts of the same source file simultaneously. The division bar starts as a small bar, called the split box, at the top of the vertical scroll bar. To split the screen click on the split box and drag it down.

The following statements are displayed in color, which can be changed, so as to distinguish them from other statements:

The debugger colors the source code to distinguish user-defined text, reserved words and comments.

2.5.1.3 Program List Window

The Program List window lists all programs loaded in memory for debugging. To display this window, select "Program List" on the Window menu.

The Program List window can be used to view programs or classes to be debugged, or to open source files.

Figure 2.5 The Program List Window

2.5.1.4 Watch Window

The Watch window displays the following kinds of information:

The Watch window opens automatically when data or condition monitoring starts and also appears when "Watch" is selected from the Window menu.

The Watch window is used to identify data changes or monitored conditions or to halt program execution when monitored data change.

More than one set of data or conditions can be programmed for monitoring.

See the figure below for an example of a Watch window.

Figure 2.6 The Watch Window

2.5.1.5 Line Command window

The Line Command window accepts line commands and displays the results. To display the Line Command window select "Line Command" from the Window menu.

Figure 2.7 The Line Command Window

Refer to "Debugger Command Lists" in Appendix A for a list of line commands.

Refer to Help for detailed specifications of the line commands.

2.5.1.6 Call Stack window

The Call Stack window displays a list of the active programs in the call stack. The program currently being debugged is at the top of the calling path, and calling programs are displayed in sequence. A mark indicating an active program is displayed to the left of the program name.

To display the Call Stack window, select "Call Stack" from the Window menu. The debugging environment can be configured to disable the Call Stack window from being updated while animation is in progress.

The Call Stack window can be used to identify a calling program or to open a source file.

The figure below illustrates a typical Call Stack window.

Figure 2.8 The Call Stack Window

2.5.1.7 Thread List window

The Thread List window displays a listing of the active threads and the threads from which a thread end event has been received.

To display the Thread List window, select "Thread List" from the Window menu. The debugging environment can be configured to disable the Thread List window from being updated while animation is in progress.

The Thread List window is used to check the status of the active threads or change the implicit thread.

Note

System and server applications may have some threads other than COBOL applications threads. This window displays all thread information (included with their threads) of the process.

See the figure below for an example of a Thread List window.

Figure 2.9 The Thread List Window

2.5.1.8 Status Bar

The status bar displays the following information: