【问题标题】:Visual Studio Code extension debugging does not work "Breakpoint set but not yet bound"Visual Studio Code 扩展调试不起作用“断点已设置但尚未绑定”
【发布时间】:2020-09-21 18:36:24
【问题描述】:

我有一个全新的安装:

  • Windows 10
  • Visualstudio 代码 (1.45.1)
  • nodejs 12.17.0
  • npm 6.14.4

我想使用以下设置调试扩展:

tsconfig.json

{
  "compilerOptions": {
      "module": "commonjs",
      "target": "es6",
      "outDir": "out",
      "lib": [
          "es6"
      ],
      "sourceMap": true,
      "rootDir": "src",
      "noUnusedLocals": true,
      "strict": true
  },
  "exclude": [
      "node_modules",
      ".vscode-test"
  ]
}

launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Extension",
            "type": "extensionHost",
            "request": "launch",
            "runtimeExecutable": "${execPath}",
            "args": [
                "--extensionDevelopmentPath=${workspaceFolder}"
            ],
            "outFiles": [
                "${workspaceFolder}/out/**/*.js"
            ],
            "preLaunchTask": "npm: watch"
        },
    ]
}

出现的问题:

当我设置断点并开始调试时,断点变灰。将鼠标光标悬停在断点上会显示快速信息“已设置断点但尚未绑定”。

我不知道是什么导致了这个问题 - 非常欢迎任何帮助。

谢谢。

【问题讨论】:

    标签: typescript debugging visual-studio-code vscode-extensions


    【解决方案1】:

    这似乎是因为我的扩展程序从一开始就没有激活。通过激活扩展,它确实立即触发了我的断点。

    【讨论】:

      猜你喜欢
      • 2020-05-09
      • 1970-01-01
      • 1970-01-01
      • 2019-07-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多