Can't debug server-side?
Unanswered
Northeast Congo Lion posted this in #help-forum
Northeast Congo LionOP
Hello. I'm following Next.js debuggings docs (https://nextjs.org/docs/pages/building-your-application/configuring/debugging#debugging-with-chrome-devtools) and can't get server side debugging to work. I followed the VSCode debugging instructions step-by-step (And also installed Webstorm to try and debug there) and spent hours reading Github/SO issues but still can't get it to work. I decided I want to debug with Chrome since I like debugging client-side code with DevTools and again, I followed the Next.js docs, but I didn't get any positive results. I can't even find ANY of the files in my project. I have attached a screenshot that shows that not a single file from my project (except next.config.js) shows up in the node.js/server-side DevTools. What am I doing wrong?
I'm running Next.js 13.4.13 (App router)
I'm running Next.js 13.4.13 (App router)
3 Replies
@Northeast Congo Lion Hello. I'm following Next.js debuggings docs (https://nextjs.org/docs/pages/building-your-application/configuring/debugging#debugging-with-chrome-devtools) and can't get server side debugging to work. I followed the VSCode debugging instructions step-by-step (And also installed Webstorm to try and debug there) and spent hours reading Github/SO issues but still can't get it to work. I decided I want to debug with Chrome since I like debugging client-side code with DevTools and again, I followed the Next.js docs, but I didn't get any positive results. I can't even find ANY of the files in my project. I have attached a screenshot that shows that not a single file from my project (except next.config.js) shows up in the node.js/server-side DevTools. What am I doing wrong?
I'm running Next.js 13.4.13 (App router)
what's debugging for you? To know a specfic value at a specific time? Then use
console.log("some unique string", value, new Date())@B33fb0n3 what's *debugging* for you? To know a specfic value at a specific time? Then use console.log("some unique string", value, new Date())
Northeast Congo LionOP
I would prefer to use a "real" debugger. Use breakpoints and follow the execution line by line
@Northeast Congo Lion I would prefer to use a "real" debugger. Use breakpoints and follow the execution line by line
yea, that would be a blessing. I don't know any yet. Tell me when you have one 👍