#Debug worker in a turborepo monorepo, Cursor/VSCode

6 messages · Page 1 of 1 (latest)

vivid mantle
#

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?

gusty summit
#

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

vivid mantle
#

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

gusty summit
#

it works when you run the wrangler in a regular cli terminal like zsh, not a debug terminal

vivid mantle
#

damn dude, been looking for this for like an hour. thanks

gusty summit
#

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.