ScreamZ
ScreamZ

Reputation: 602

VSCode Typescript with NextJS debugging

I can't get any debug config to work with breakpoints and nextJS using typescript… Does anyone have one to share with me ?

Thanks

Upvotes: 6

Views: 2768

Answers (1)

followben
followben

Reputation: 9197

This is my .vscode/launch.json:

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Launch Program",
      "program": "${workspaceFolder}/node_modules/next/dist/bin/next"
    }
  ]
}

Working for me with Next.js v9.4.4 in June 2020.

Upvotes: 4

Related Questions