#Monorepo debugging configuration(vscode)

2 messages · Page 1 of 1 (latest)

twilit forge
#

Hey, has someone managed to configure their launch.json file in a monorepo setup with multiple applications?
I've always been able to debug another single project I work on with this configuration:

{ "type": "node", "request": "launch", "name": "Sandbox", "runtimeExecutable": "npm", "runtimeArgs": ["run", "windows-start:sandbox"], "autoAttachChildProcesses": true, "restart": true, "sourceMaps": true, "stopOnEntry": false, "console": "integratedTerminal" }

but if I try to use it in this other monorepo setup(with some different configurations that I tried at least), it launches the app but it doesn't bind the breakpoints. I've tried changing the "cwd", "args", "outFiles" and other properties, but couldn't get it to work

My monorepo folder structure right now:

dawn anvil
#

Have you tried launching the app via the Javascript Debug Console that's built into VSCode? You don't need any launch config for that.