You can create additional launch configurations for other debugging scenarios in the launch.json file:
You can add one of the following configurations - COBOL (native): Launch, COBOL (native): Launch - remote, COBOL (native): Launch - Remote-SSH, COBOL (native): Launch - 64-bit, COBOL (native): Attach to process, COBOL (native): Enterprise Server, COBOL (native): Wait for attachment.
Optionally, you can add more settings to these as required.
Some of the settings you can specify are:
"remoteDebug": { "machine": "machine name or IP", "port": nn }
When Remote debugging, file names provided by the debugger contain paths on the remote file system which may not exist on the local file system. You can add one or more pathMappings which maps paths from the remote file system to paths on the local file system to enable the source files to be opened:
"pathMappings": [ { "remote": "remote-path", "local": "local-path"} ],
"env": [ {"name": "MFTRACE_CONFIG", "value": "d:\\trace.cfg" }]
This does not, on its own, result in CTF output in the DEBUG CONSOLE.
If, however, the CTF configuration file has the idedbg emitter set then CTF output will be displayed in the DEBUG CONSOLE. The idedbg emitter is only available on Windows and therefore the output will only be displayed in the DEBUG CONSOLE on Windows.
As an alternative, on Linux platforms the content of the textfile emitter can be viewed in Visual Studio Code as it is written by opening the Terminal and running the tail command using:
tail -f <path-to-emitter-file>
For more about CTF Tracing, see the product Help of Micro Focus Visual COBOL or Enterprise Developer.