Skip to content

Instantly share code, notes, and snippets.

@drmikecrowe
Last active March 4, 2022 12:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drmikecrowe/7cd435fb94f0f74106fc00057fe0003b to your computer and use it in GitHub Desktop.
Save drmikecrowe/7cd435fb94f0f74106fc00057fe0003b to your computer and use it in GitHub Desktop.
My common launch.json config
[
{
"type": "node",
"request": "attach",
"port": 9229,
"sourceMaps": true,
"name": "Attach 9229",
"cwd": "${workspaceRoot}",
"address": "localhost",
"localRoot": "${workspaceFolder}",
"remoteRoot": "${workspaceFolder}",
"protocol": "inspector"
},
{
"name": "Current TS File",
"type": "node",
"request": "launch",
"args": ["${relativeFile}"],
"runtimeArgs": ["-r", "ts-node/register/transpile-only"],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"env": { "DEBUG": "*" },
"internalConsoleOptions": "openOnSessionStart"
},
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"justMyCode": false,
"console": "integratedTerminal"
},
{
"name": "Current TS File with tsconfig-paths",
"type": "node",
"request": "launch",
"args": ["${relativeFile}"],
"runtimeArgs": ["-r", "tsconfig-paths/register", "-r", "ts-node/register"],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"env": { "DEBUG": "*" },
"internalConsoleOptions": "openOnSessionStart"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment