Code:
console.log(Deno.args[0])
console.log(Deno.args[1])
launch.json
:
{
"version": "0.2.0",
"configurations": [
{
"request": "launch",
"name": "test",
"type": "node",
"program": "${file}",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "deno",
"runtimeArgs": [
"run",
"argA",
"argB"
],
"args": ["arg0", "arg1"],
"attachSimplePort": 9229
},
]
}
Result:
undefined
undefined
Expected:
arg0
arg1
or
argA
argB