带有 NextJS 调试的 VSCode Typescript

Scr*_*amZ 6 typescript visual-studio-code next.js

我无法使用 typescript\xe2\x80\xa6 获取任何调试配置来使用断点和 nextJS 有谁可以与我分享吗?

\n\n

谢谢

\n

fol*_*ben 4

这是我的.vscode/launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Launch Program",
      "program": "${workspaceFolder}/node_modules/next/dist/bin/next"
    }
  ]
}
Run Code Online (Sandbox Code Playgroud)

2020 年 6 月为我工作 Next.js v9.4.4。