feature request: implementation of commandLine option in VS code launch.json file
Currently it is possible to pass arguments to the Perl debugger in VS code in the launch.json file, using the built in args facility and input variables:
##launch.json file
"configurations": [
{
"type": "perl",
"request": "launch",
"name": "Perl-Debug",
"program": "${file}",
"args": ["${input:arg}"],
"stopOnEntry": true,
"reloadModules": true
},
"inputs": [
{
"type": "promptString",
"id": "arg",
"description": "command line argument",
"default": "",
},
]
The current issue is that the input variable is passed as a string to the debugger, so it's not possible to specify multiple command line arguments this way. As discussed in the VS code channel (https://github.com/microsoft/vscode/issues/83678), the easiest way around this would be to: 'ask the debugger author to support an alternative launch configuration attribute "commandline" that avoids the array'. { "type": "perl", "request": "launch", "name": "Debug INPUT", "console": "integratedTerminal", "program": "${workspaceFolder}/${relativeFile}", "commandline": "-foo -bar /hello/world -o -p" }
Would something like this be possible to implement in the Perl language server?