I cannot find out how to make a debugger work with server-side code #74420
-
SummaryI started learning Next.js and looking for a way to debug server-side code. I read the Next.js official documentation and followed all the steps there. I am using Node v. 23.3.0 I created my project using:
which installed Next.js 15.1.3 and React 19.0.0 I created very simple page.tsx
I added launch.json:
In VS Code in Debug panel when I select the first configuration "Next.js: debug server-side" and press F5 the debugger starts (the strip with start, stop buttons appears). Now when I go to localhost://3000 in the browser:
If I select second debugging configuration 'Next.js: debug full stack' the debugger doesn't start and in VS Code 'Debug Console' window below error is shown:
So I followed the documentation and tried different options: installed:
did changes in the package.json script section - changed:
to:
run:
in Chrome went to:
clicked on 'Inspect' so the Node Dev Tools opened but: In the 'Sources' tab there are 3 folders
So there isn't
as the documentation says. I checked all 3 but there aren't my source files anywhere. The question: what I am doing wrong and how can I make my project being available for server-side debugging? Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I think you often need to add 9230 to the Configuration: This used to be documented too. I'll give it a go and post a reply immediately. |
Beta Was this translation helpful? Give feedback.
I think you often need to add 9230 to the Configuration:
This used to be documented too. I'll give it a go and post a reply immediately.