Debugging in Visual Studio Code requires that you create a launch configuration with the settings which the debugger requires to enable it to debug your COBOL code. This is how you debug your code with the default launch configuration:
This shows the Task Picker with the available debugging tasks:
This creates a launch.json file in a .vscode subfolder in the folder that holds your sources. By default, the launch.json contains two configurations - one for debugging a standalone application, and one for attaching the debugger to a running process:
"configurations": [
{
"type": "cobol",
"request": "launch",
"name": "COBOL (native): Launch",
"program": "${workspaceFolder}/<insert-program-name-here>",
"cwd": "${workspaceFolder}",
"stopOnEntry": true
},
{
"type": "cobol",
"request": "attach",
"name": "COBOL (native): Attach to process",
"processId": "${command:pickProcess}"
}
]
}
You can add more configurations to this file as required.
to open the Run panel.
The two default launch configurations are listed in the Configuration drop-down within the Run panel:

(Start Debugging).



You can control whether to display the inline values with the Microsoft Debug: Inline Values setting of Visual Studio Code.
This opens a Memory window that enables you to view and edit data in the memory associated with the selected item.
