【发布时间】:2018-02-11 13:49:33
【问题描述】:
我正在使用 Visual Studio Code (vscode) 开发一个 next.js 应用程序,我非常喜欢那个编辑器!我已经从扩展商店安装了 Debugger for Chrome。下面的配置启动了一个新的 Chrome 实例,我可以开始调试了。它在 vscode 的断点处停止,但问题来了。尽管我将它添加到“skipfiles”中,但它不显示函数的值并跳转到 node_modules 事件。 断点也不会在构造函数上停止。不支持 next.js 吗? 我经常使用异步等待语法。调试服务器端代码完美运行。
{
"name": "My Client",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3000",
"webRoot": "${workspaceRoot}/my-client/",
"skipFiles": [
"node_modules/**/*.js",
"<node_internals>/**/*.js",
"node_modules",
".next"
]
}
【问题讨论】:
标签: javascript visual-studio-code next.js