Essentially, there are three methods used to start debugging.
Debugging for general programs
Start the debugger, and specify the program you want to debug. Start the debug.
Debugging for programs that run in server environments such as Interstage
Start the debug from program you want to debug. Since the COBOL program is called from the server product, you must use this as the start method, as the programs cannot be debugged using the method for general programs.
Debugging using the just-in-time debugging function
When an application error occurs or a runtime message occurs in the program, the debugger starts automatically and debugs the program.
This starts the debugger and starts debug for the program you want to debug. The following are general methods:
Select "Debug" from the Project menu of the Project Manager window.
Select "Win32" in the Project Manager window, Tools menu, "Debugger type". Next, use one of the following methods to start the debug:
Select "Debugger" in the Project Manager window, Tools menu.
At the command prompt, type in the command to invoke the debugger. Refer to "2.4.2.2 Specifying Options on the Command Line" for the details of the command line format.
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.
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”.
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.