VSC 附加到 SSL LocalHost 以进行 Angular 调试

时间:2021-07-27 21:37:02

标签: visual-studio-code vscode-debugger

使用类似的启动配置,我无法附加到 httpS://localhost:4200 从 VSC for Angular 11应用,既不是 Chrome 也不是 Edge。

launch.json:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Attach to Edge",
            "port": 9222,
            "request": "attach",
            "type": "pwa-msedge",
            "webRoot": "${workspaceFolder}"
        },
        {
            "name": "Attach to pwa-Chrome",
            "port": 9222,
            "request": "attach",
            "type": "pwa-chrome",
            "urlFilter": "https://localhost:4200",
            "webRoot": "${workspaceFolder}"
        },
        {
            "type": "chrome",
            "request": "attach",
            "name": "Attach to Legacy Chrome",
            "port": 9222,
            "urlFilter": "https://localhost:4200",
            "webRoot": "${workspaceFolder}"
        },
        {
            "type": "chrome",
            "request": "launch",
            "name": "F5 against localhost",
            "port": 4201,
            "url": "https://localhost:4200",
            "webRoot": "${workspaceFolder}"
        }
    ]
}
<块引用>

无法连接到 localhost:9222 的目标:无法连接到 位于 http://localhost:9222 的调试目标:找不到任何可调试的 目标。

底部 launch 有效。

0 个答案:

没有答案