Debug worker in a turborepo monorepo, Cursor/VSCode
I'm using cloudflare workers in my turborepo monorepo in cursor. Whatever I try with this setup, I can't seem to get the debugger to stop on my breakpoints. Any idea what I can do to be able to debug properly?
6 Replies
I have the same problem with wrangler, not stoping no matter the debug config, latest wrangler.
the same worker runs fine in vite and breaks in vscode/cursor
I ended up just going back to the chrome dev tools wrangler debugging option
How do you open those? I thought you need to click d after running wrangler dev, but this seems to not work for me as well
it works when you run the wrangler in a regular cli terminal like zsh, not a debug terminal
damn dude, been looking for this for like an hour. thanks
they should still fix wtf is wrong w wrangler and vscode debug config, or specific whats needed to make it run, because all the vsdocs in the world dont help here, ive done full re-builds, new env, node modules etc.
for sure, i just wasted like 3 hours on this and i was about to quit and go deploy a regular node server