Skip to content

Commit

Permalink
✨ enable debugging admin in vs code with tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed May 20, 2024
1 parent deff729 commit d1ba693
Showing 1 changed file with 37 additions and 9 deletions.
46 changes: 37 additions & 9 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,24 +86,52 @@
"skipFiles": [
"<node_internals>/**"
],
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"args": [
"-g",
"367"
]
"args": [
"-g",
"367"
]
},
{
"name": "Launch admin server",
"program": "${workspaceFolder}/itsJustJavascript/adminSiteServer/app.js",
"program": "${workspaceFolder}/adminSiteServer/app.tsx",
"request": "launch",
"type": "node",
"runtimeExecutable": "yarn",
"runtimeArgs": [
"tsx",
"--tsconfig",
"tsconfig.tsx.json"
],
// Files to exclude from debugger (e.g. call stack)
"skipFiles": [
// Node.js internal core modules
"<node_internals>/**",
// Ignore all dependencies (optional)
"${workspaceFolder}/node_modules/**",
],
},
{
"name": "Launch admin server (via fnm)",
"program": "${workspaceFolder}/adminSiteServer/app.tsx",
"request": "launch",
"type": "node",
"runtimeExecutable": "fnm",
"runtimeArgs": [
"exec",
"--",
"yarn",
"tsx",
"--tsconfig",
"tsconfig.tsx.json"
],
// Files to exclude from debugger (e.g. call stack)
"skipFiles": [
// Node.js internal core modules
"<node_internals>/**",
// Ignore all dependencies (optional)
"${workspaceFolder}/node_modules/**",
],
},
{
"name": "Attach to node",
Expand All @@ -112,4 +140,4 @@
"restart": true
},
]
}
}

0 comments on commit d1ba693

Please sign in to comment.