Vscode: args in launch.json not getting picked up.

Created on 22 Jan 2016  ·  1Comment  ·  Source: microsoft/vscode

I am trying with the below configuration. args for the program are not getting picked up. Is there something I am missing. ?
I am expecting something like "node node_modules/nightwatch/bin/runner.js --test buildOutput/JavaScript1.js --env devtest-chrome-win8" to be executed.
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "node",
"request": "launch",
"program": "node_modules/nightwatch/bin/runner.js",
"stopOnEntry": false,
"args": [
"--test buildOutput/JavaScript1.js --env devtest-chrome-win8"
],
"cwd": ".",
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "development"
},
"externalConsole": true,
"sourceMaps": false,
"outDir": null
},
{
"name": "Attach",
"type": "node",
"request": "attach",
"port": 5858
}
]
}

debug

Most helpful comment

@rkavalap you have to pass the arguments as individual string elements:

"args": [
   "--test", "buildOutput/JavaScript1.js",
   "--env", "devtest-chrome-win8"
]

>All comments

@rkavalap you have to pass the arguments as individual string elements:

"args": [
   "--test", "buildOutput/JavaScript1.js",
   "--env", "devtest-chrome-win8"
]
Was this page helpful?
0 / 5 - 0 ratings

Related issues

lukehoban picture lukehoban  ·  3Comments

v-pavanp picture v-pavanp  ·  3Comments

chrisdias picture chrisdias  ·  3Comments

VitorLuizC picture VitorLuizC  ·  3Comments

biij5698 picture biij5698  ·  3Comments