Skip to content

Instantly share code, notes, and snippets.

@damassi
Created February 22, 2018 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save damassi/754b62fefafba1746a131b7e093550d1 to your computer and use it in GitHub Desktop.
Save damassi/754b62fefafba1746a131b7e093550d1 to your computer and use it in GitHub Desktop.
Debug random node script in VSCode
{
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug Build",
"program": "${workspaceFolder}/node_modules/.bin/babel",
"args": [
"src",
"--ignore",
"src/**/__tests__",
"src/**/__stories__",
"--out-dir",
"dist",
"--extensions",
"'.ts,.tsx'"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment