Next.js 15.1.3 + Turbopack无法触发未绑定断点问题求助
Next.js 15.1.3 搭配 Turbopack 时未绑定断点无法触发
我在使用Next.js 15.1.3版本搭配Turbopack开发时,遇到了未绑定断点无法触发的问题。已经试过这些办法,但都没用:
- 删除
.next文件夹后重新构建 - 浏览器强制刷新(Ctrl+Shift+R)清除缓存
- 修改launch.json的
request为"attach"模式 - 通过进程ID手动附加调试
我的launch.json配置如下:
{ "type": "chrome", "request": "launch", "name": "Launch Chrome against localhost", "url": "http://localhost:3000", "webRoot": "${workspaceFolder}", "sourceMaps": true, "resolveSourceMapLocations": [ "${workspaceFolder}/**", "!**/node_modules/**" ] }
调试界面截图:
内容的提问来源于stack exchange,提问作者petercli
相关产品推荐
相关产品推荐

