无法命中未绑定断点

问题描述 投票:0回答:1

下一个版本“15.1.3”和turbopack

我尝试删除 .next 文件夹,并在浏览器中强制重新加载,但没有成功。

还尝试了“请求”:“附加”,但没有运气。 我还尝试过通过进程 ID 附加。 这是我的 launch.json

{
    "type": "chrome",
    "request": "launch",
    "name": "Launch Chrome against localhost",
    "url": "http://localhost:3000",
    "webRoot": "${workspaceFolder}",
    "sourceMaps": true,
    "resolveSourceMapLocations": [
        "${workspaceFolder}/**",
        "!**/node_modules/**"
    ],

},

enter image description here

visual-studio-code next.js
1个回答
0
投票

我想了很多 - 现在我可以按照此 wiki 在 Chrome 中命中客户端断点:https://developer.chrome.com/docs/devtools/javascript/source-maps

(由于某种原因,launch.json 对我不起作用)

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.