diff --git a/.vscode/launch.json b/.vscode/launch.json index 183e3b26d88..4afec7a04eb 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -86,24 +86,52 @@ "skipFiles": [ "/**" ], - "skipFiles": [ - "/**" - ], "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 + "/**", + // 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 + "/**", + // Ignore all dependencies (optional) + "${workspaceFolder}/node_modules/**", + ], }, { "name": "Attach to node", @@ -112,4 +140,4 @@ "restart": true }, ] -} +} \ No newline at end of file