DEV Community

Discussion on: 5 Steps to debugging Next.js/Node.js from VSCode or Chrome DevTools

Collapse
 
pineshmenat profile image
Pinesh I Menat

My Two cents:

NextJS under the hood is ReactJS so I tried adding launch.json of react from VSCode

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "pwa-msedge",
      "request": "launch",
      "name": "Launch Edge against localhost",
      "url": "http://localhost:3000",
      "webRoot": "${workspaceFolder}"
    }
  ]
}

Enter fullscreen mode Exit fullscreen mode

Now run NextJS as "dev": "next dev" - no change
npm run dev
Press F5 to attch the process and it should work now.