Last active
March 11, 2018 18:44
-
-
Save bcomnes/2421f38be737ce9e12c9e859a9b9e94e to your computer and use it in GitHub Desktop.
How to set up vs code debugger with a run script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
// https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_launch-configuration-support-for-npm-and-other-tools | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Launch via test NPM", | |
"type": "node", | |
"request": "launch", | |
"cwd": "${workspaceFolder}", | |
"runtimeExecutable": "npm", | |
"runtimeArgs": [ | |
"run-script", "debug" | |
], | |
"port": 9229 | |
}, | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Launch Program", | |
"program": "${workspaceFolder}/index.js" | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"test": "tape test/* | tap-format-spec", | |
"debug": "node --nolazy --inspect-brk=9229 node_modules/.bin/tape test/*" | |
}, | |
"devDependencies": { | |
"@tap-format/spec": "^0.2.0", | |
"tape": "^4.6.3" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment