Skip to content

Instantly share code, notes, and snippets.

@xaviergmail
Created January 26, 2021 20:09
Show Gist options
  • Save xaviergmail/d844dc12daccdbaa390a1446933874ab to your computer and use it in GitHub Desktop.
Save xaviergmail/d844dc12daccdbaa390a1446933874ab to your computer and use it in GitHub Desktop.
VSCode node debug current file
// Create a folder called .vscode and save this file in there as launch.json
// It should look like this: project_directory/.vscode/launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "pwa-node",
"request": "launch",
"name": "Launch Current Opened File",
"skipFiles": ["<node_internals>/**"],
"program": "${file}"
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment