Reputation: 602
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
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