V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
yazoox
V2EX  ›  Visual Studio Code

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

  •  
  •   yazoox · 2020-04-13 19:37:53 +08:00 · 3268 次点击
    这是一个创建于 1445 天前的主题,其中的信息可能已经有所发展或是发生改变。

    最近在学习 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}"
            }
        ]
    }
    

    appears to be currupt visual studio code unsupported

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

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

    3 条回复    2020-04-14 12:52:00 +08:00
    yazoox
        1
    yazoox  
    OP
       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
        2
    a852695  
       2020-04-14 09:38:10 +08:00
    bug 了吧
    pomelotea2009
        3
    pomelotea2009  
       2020-04-14 12:52:00 +08:00 via Android
    这么复杂的问题,如果搜素不到答案,最直接的方式就是重开重启重装三连 [doge]
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3328 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 13:45 · PVG 21:45 · LAX 06:45 · JFK 09:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.