Offers debug configurations, breakpoints, variables, stepping through the code.
Note:
Visual Studio Code version 1.73 or later is required.
Compile and debug features are available when a compatible version of Micro Focus Visual COBOL or Enterprise Developer is installed on the same machine. See Scope of Support and also the full documentation of this extension for details.
Debugging JVM COBOL code
Refer to the of the extension for all prerequisites for JVM COBOL debugging.
After installing this extension, you need to register JVM COBOL debugging support to be able to debug JVM projects. You only need to do this once:
Invoke the Visual Studio Code Command Palette widget - click Ctrl+Shift+P.
Scroll down or start typing the following, then click Register JVM COBOL support with Java Language Server (JDT LS) in the list. This adds the COBOL support to the JVM debugger.
Next, you need to create a launch.json file for your sources. See the full documentation for details about the available configurations for JVM COBOL.
To launch debugging:
Set any breakpoints in your programs as required.
In the EXPLORER pane, click Run > Start Debugging.
Debug your project in the usual way.
Check the TERMINAL, OUTPUT, and PROBLEMS pane for any messages. There is a different debug terminal for each program you debug.
Scope of the Support in this Version
This version of the Micro Focus JVM COBOL extension has the following limitations:
Debugging of JVM COBOL code is supported only if you have a licensed version of a Micro Focus COBOL product on the same machine. See Installing in the full documentation for details.