VSCode version:
Version: 1.42.0-insider
Commit: 7c0095ee2d064033fc13184127a9adc603454729
Date: 2019-12-20T07:55:38.353Z
Electron: 6.1.6
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Darwin x64 18.6.0
Launch.json:
{
"stopOnEntry": true,
"name": "node relativeFile",
"type": "node",
"request": "launch",
"args": ["${workspaceFolder}/${relativeFile}"],
"cwd": "${workspaceFolder}/backend"
},
Script file:
const fs = require('fs');
console.log('hmm');
This is adapted from a ts-node launch json where I have an additional "runtimeArgs": ["-r", "ts-node/register"],. Of course does this not run, but it's the next step.
I did notice that this does work:
{
"name": "node launch Program",
"type": "node",
"request": "launch",
"program": "${file}"
},
It just hangs:

No output in the log:

So it seems like passing the file in as an argument rather than program is not working? But the same command does work on the CLI, e.g. /Users/bencreasy/.local/nodenv/shims/node /Users/bencreasy/code/stock-analysis/backend/src/db/migrations/migrate-csv-all-trading.js
Works in CLI:

I was originally motivated to try this due to "Step Over" in the current debugger continuously stepping in.
VSCode version:
Launch.json:
Script file:
This is adapted from a ts-node launch json where I have an additional
"runtimeArgs": ["-r", "ts-node/register"],. Of course does this not run, but it's the next step.I did notice that this does work:
It just hangs:

No output in the log:

So it seems like passing the file in as an argument rather than program is not working? But the same command does work on the CLI, e.g.
/Users/bencreasy/.local/nodenv/shims/node /Users/bencreasy/code/stock-analysis/backend/src/db/migrations/migrate-csv-all-trading.jsWorks in CLI:

I was originally motivated to try this due to "Step Over" in the current debugger continuously stepping in.