Top
NetCOBOL V11.0 Debugging Guide
FUJITSU Software

2.4.1 Start debugging

Essentially, there are three methods used to start debugging.

2.4.1.1 How to start debugging for general programs

This starts the debugger and starts debug for the program you want to debug. The following are general methods:

When the debugger starts, the Main window of the debugger will appear. To start a debugging session, bring up the Start Debugging dialog box, provide the required information, and click the [OK] button. This starts a debugging session. Then, the dialog box closes and the Main window is activated. Thus, you can perform debugging by selecting menus and buttons in the Main window, or by entering a line command.

2.4.1.2 How to start debugging for programs that run in server environments such as Interstage

This is the method for starting the debugger from the program you want to debug.

You can start debug for programs that run on servers such as Interstage and Web servers from the command in the environment variable. For details, refer to “How to start remote debugging for programs that run in server environments such as Interstage”.

2.4.1.3 How to start debugging using the just-in-time debugging function

This start method automatically starts the debugger and debugs the program if an application error or runtime message occurs in the program.

Use the environment variable @CBR_JUSTINTIME_DEBUG to start the debugger when an application error or runtime message occurs and debug the program. Refer to "@CBR_JUSTINTIME_DEBUG (Specify inspection using the debugger or the COBOL Error Report at abnormal termination)" in the "NetCOBOL User's Guide".

When an application error or runtime message occurs in the program as it is run, the debugger is activated, and the Main window of the debugger will appear. To start a debugging session, bring up the Start Debugging dialog box and click the [OK] button. When debugging starts, the program pauses with the application error or runtime message occurring.