The current way is the following launch configuration (at least as I've understood the docs):
{
"version": "0.2.0",
"configurations": [
{
"type": "COBOL",
"request": "launch",
"name": "COBOL Debugger",
"commandLine": "isdbg.exe $1 $2",
"params": [
"Program name",
"Sample question for second parameter",
],
"stopOnEntry": true
}
]
}
The vscode default is to use configurable input parameters instead (those also allow drop-downs, get parameter from a command, ... via its types, see Input Variables docs), which would look like the following (and comes "for free" - the only thing to do would be deprecation of rech.cobol.debug.params and removing when possible):
{
"version": "0.2.0",
"configurations": [
{
"type": "COBOL",
"request": "launch",
"name": "COBOL Debugger",
"commandLine": "isdbg.exe ${input:prog} ${input:second}",
"stopOnEntry": true
}
],
"inputs": [
{
"id": "program",
"description": "Program name",
"type": "promptString",
"default": "YourMain"
},
{
"id": "second",
"description": "Sample question for second parameter",
"type": "promptString",
"default": ""
}
]
}
The current way is the following launch configuration (at least as I've understood the docs):
{ "version": "0.2.0", "configurations": [ { "type": "COBOL", "request": "launch", "name": "COBOL Debugger", "commandLine": "isdbg.exe $1 $2", "params": [ "Program name", "Sample question for second parameter", ], "stopOnEntry": true } ] }The vscode default is to use configurable input parameters instead (those also allow drop-downs, get parameter from a command, ... via its types, see Input Variables docs), which would look like the following (and comes "for free" - the only thing to do would be deprecation of
rech.cobol.debug.paramsand removing when possible):{ "version": "0.2.0", "configurations": [ { "type": "COBOL", "request": "launch", "name": "COBOL Debugger", "commandLine": "isdbg.exe ${input:prog} ${input:second}", "stopOnEntry": true } ], "inputs": [ { "id": "program", "description": "Program name", "type": "promptString", "default": "YourMain" }, { "id": "second", "description": "Sample question for second parameter", "type": "promptString", "default": "" } ] }