首页 > 解决方案 > 在vs代码中调试离子项目时未绑定断点?

问题描述

我在 Visual Studio 代码中有一个小离子项目。当我想调试它时,当我将鼠标悬停在断点上时,断点变得苍白,并显示“未绑定断点”消息。

但是,在普通的角度应用程序中,我可以毫无问题地调试。

Ionic 是全局安装的。

我已经检查了现有的解决方案,但到目前为止它们还没有工作。在我的 angular.json 中,我设置sourceMapstrue,但没有任何改变。

这是我的launch.json:

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "pwa-chrome",
            "request": "launch",
            "name": "Launch Chrome against localhost",
            "url": "http://localhost:8100",
            "webRoot": "${workspaceFolder}",
            "sourceMaps": true
        }
    ]
}

谁能告诉我我做错了什么?感谢您的每一个帮助!

标签: angulardebuggingionic-frameworkvisual-studio-codevscode-debugger

解决方案


推荐阅读