-
Notifications
You must be signed in to change notification settings - Fork 344
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
Description
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}"
},
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
I was originally motivated to try this due to "Step Over" in the current debugger continuously stepping in.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug


