skip to main content

Debugger

Debugger
Overview
isCOBOL provides a visual source-level debugger. In order to debug programs, they must be compiled with the -d option. For example:
iscc -d Options SourceCode
When the -d option is used, the compiler stores the names of the source file, the copyfile, and their respective paths in the class file. The source file is not included in the resulting class file (it contains only references to the source code). The Debugger must be able to load these names and paths in order to show its content.
When the Debugger loads a program, it looks for the source and copy files in the following paths:
That's why the original source must be available at debugging time. This is especially handy when the Remote Debugger is used.
The following command starts a debugging session of the ProgramName program.
iscrun -d ProgramName
When running on Windows, the following command can also be used:
isrun -d ProgramName
Note - The Debugger takes advantage of some Compiler features, therefore the isCOBOL Compiler must be installed and licensed on the machine where the above commands are used.
Debugging a multi-thread program
When the debugged program generates more threads, it’s possible to switch from one thread to another by choosing the desired thread at the bottom of the Run menu.
While the debugger is waiting for user input, all threads are blocked. When the debugger gives the control to the program, all threads run.

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left