The following information applies when you use Visual Studio Code to debug applications that use character screens for input/output on a remote Linux machine and you use the Remote-SSH extension to connect to the machine.
If the application being debugged contains any screen I/O, you need to interact with the application in a window on the desktop. The debugger must be set up to allow the information to appear in an X terminal. These are the steps to enable this support:
ForwardX11Trusted yes
echo $DISPLAY
This typically is a value such as localhost:10.0.
"env": [ { "name": "DISPLAY", "value": "<The value obtained from the X terminal>"}, { "name": "TERM", "value": "xterm"} ]
When you start debugging the application, an X terminal is displayed containing the screen I/O for the application.
See the Remote COBOL Development topic for more details about how to set up a remote SSH connection for remote development.