未验证的断点(断点已设置但尚未绑定) [英] Unverified breakpoint (Breakpoint is set but not yet bound)

查看:38
本文介绍了未验证的断点(断点已设置但尚未绑定)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过具有自动创建设置的 Chrome Debugger 扩展在 Chrome 中成功调试了我的 Angular 应用程序.但是 [something] 发生了,在我的一次 Windows 7 重新启动后,我得到了非活动断点.我想它受到 Windows PATH 环境变量更改的影响.为什么我会这样想?我收到一条消息,例如PATH 的值不正确,您要修复它吗?"当 Windows 启动时.不幸的是,我无法重现我的旧 PATH 值.这可能是巧合,但在这种情况下调试不起作用.

I had been successfully debugging my angular app in Chrome via Chrome Debugger extension with automatic created settings. But [something] happened, and after one of my Windows 7 reboots I got unactive breakpoints. I suppose that it was affected by Windows PATH environment variable change. Why I thinking so? I got a message like "PATH has a bad value, do you want to fix it?" when Windows started. Unfortunately I can't reproduce my old PATH value. It can be a coincidence, but after this case debugging does not work.

无论在哪里设置断点:既不在函数或代码块的开头,也不在块的中间,也不在变量声明中,也不在变量操作中.任何角度组件都没有激活断点:根组件和其他组件都没有.

No matter where a breakpoints are set: neither in the beginning of function or code block, nor in the middle of block, nor in a variable declaration, nor a variable operations. Breakpoints is not activated in noone of angular components: neither root component, nor others.

我使用谷歌浏览器最新版本.有趣的是,我安装了 Debugger for Electron 扩展,同样启动成功,但是断点仍然没有激活.

I use Google Chrome latest version. Interestingly, I installed the Debugger for Electron extension, which also starts up successfully, but the breakpoints are still not activated.

其他信息:

launch.json:

launch.json:

    {
    "version": "0.2.0",
    "configurations": [       
        {
            "type": "chrome",
            "request": "launch",
            "name": "Launch Chrome against localhost",
            "url": "http://localhost:4200",
            "webRoot": "${workspaceFolder}",
            "trace": true,
            "sourceMaps": true,
        },
        {
            "type": "electron",
            "request": "launch",
            "name": "Launch Electron",
            "sourceMaps": true,
            "appDir": "H:/opened-in-VSCode-folder",
        },
    ]
}

项目文件夹结构:

在 launch.json 中也不起作用:

In launch.json also not works:

  • 将webRoot"更改为${workspaceFolder}/src"、${workspaceFolder}\src"、${workspaceFolder}/dist"和许多其他变体.
  • 禁用或启用跟踪":true
  • 禁用或启用sourceMaps":true

Chrome、Windows、VSCode 的额外重启,重新安装 Angular 和 Electron 不会导致成功.杀毒软件停止.Windows上次成功登录"没有帮助.

Additional reboots of Chrome, Windows, VSCode, reinstalling Angular and Electron don't leads to success. Antivirus stopped. Windows "Last successful login" did not help.

感谢您提供任何信息.

UPD 1:vscode-chrome-debug.txt 日志文件中唯一的错误"一词:

UPD 1: The only word "error" in the vscode-chrome-debug.txt log file:

... 
  {"id":5,"result":{}} [09:54:38.267 UTC] ← From target:
  {"error":{"code":-32601,"message":"'Runtime.run' wasn't found"},"id":6}
  [09:54:38.267 UTC] ← From target:
  ...

UPD 2:重新安装 Windows 也没有帮助.我猜是包版本的问题.

UPD 2: Reinstalling windows not helped too. I guess the problem in the packages versions.

推荐答案

我通过更新一些软件解决了这个问题:

I solved the problem by updating some software:

  • VS 代码:1.37.1
  • 铬:69.0.3497.128
  • Node.js:10.11.0
  • V8:6.9.427.31

这篇关于未验证的断点(断点已设置但尚未绑定)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆