I m trying to debug both server and client but seem like breakpoints are not being hit for some reason
my current configuration is this one
{
"version": "0.2.0",
"configurations": [
{
"name": "Next.js: debug server-side",
"type": "node-terminal",
"request": "launch",
"cwd": "${workspaceFolder}",
"command": "bun run devturbo"
},
{
"name": "Next.js: debug client-side",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3000"
},
{
"name": "Next.js: debug full stack",
"type": "node-terminal",
"request": "launch",
"command": "bun run devturbo", // tried with npm as well
"cwd": "${workspaceFolder}",
"serverReadyAction": {
"pattern": "- Local:.+(https?://.+)",
"uriFormat": "%s",
"action": "debugWithChrome"
}
}
]
}
as followed in the next documentation https://nextjs.org/docs/pages/building-your-application/configuring/debugging#debugging-with-vs-code
On package.json I have this
"scripts": {
"dev": "cross-env NODE_OPTIONS=--inspect next dev",
"devturbo": "cross-env NODE_OPTIONS=--inspect next dev --turbo",
"devsafe": "rm -rf .next && cross-env NODE_OPTIONS=--no-deprecation next dev",
"build": "cross-env NODE_OPTIONS=--no-deprecation next build"
}
current packages versions:
"@payloadcms/next": "3.0.0-beta.36",
"next": "15.0.0-rc.0",
"payload": "3.0.0-beta.36",
"react": "19.0.0-rc-f994737d14-20240522",`
OS: Windows
What am i missing?
Thanks