去的 vscode 突然不能 debug 了,提示我 "Breakpoint set but not yet bould?" "vs code unsupported"

2020-04-13 19:37:53 +08:00
 yazoox

最近在学习 react.js 小书,里面有不错的例子,便 debug 看看。( refer to:https://github.com/huzidaha/react-naive-book-examples/tree/master/comment-app3/src)

下载下来,npm install,然后 npm start 。都挺正常的,没有问题。

接着在 vscode 里面,配置好 debugger for chrome (一个插件 microsoft 出的). F5 就可以开始了。

下午一直都是好的,断点什么的,正常工作。6:00pm 左右的时候,突然一下子。就不能 debug 了!

所有的断点提示我 “Breakpoint set but not yet bould ?”

然后,vscode 的标题栏出现了图片中的 unsupported 。右下脚也有提示 什么 currupt

可是,我并不知道哪里出了问题?怎么知道是哪里,可以某插件出问题了?或者怎么看到详细的出错提示?

谢谢!

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "chrome",
            "request": "launch",
            "name": "Launch Chrome against localhost",
            "url": "http://localhost:3000",
            "webRoot": "${workspaceFolder}"
        }
    ]
}

https://i.postimg.cc/yxJZwNJm/PIC-20200413002.jpg

https://i.postimg.cc/PJBwhkZB/PIC-20200413003.jpg

3294 次点击
所在节点    Visual Studio Code
3 条回复
yazoox
2020-04-13 21:19:10 +08:00
暂时解决了! 太扯蛋了。

我有两台机器,刚才出问题的是其中一台 A,另外一台机器 B 是好的。

于是,我把 A 上面的 vscode 彻底删除,全新安装。只安装 debug for chrome 。还是不行。

百度 /google 了一下,试了试。就添加了 /src 。结果,好了,breakpoint 能够正常工作了。
```
"webRoot": "${workspaceFolder}/src",
```

我要疯了。为什么啊?

两台机器,都是下载的这个 comment-app 本来都是直接"webRoot": "${workspaceFolder}"就能够正常 debug
现在其中一台必须要添加 /src,另外一台不需要.....

这太扯蛋了吧?
a852695
2020-04-14 09:38:10 +08:00
bug 了吧
pomelotea2009
2020-04-14 12:52:00 +08:00
这么复杂的问题,如果搜素不到答案,最直接的方式就是重开重启重装三连 [doge]

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/662072

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX