【问题标题】:No debugger in VS code extension testsVS 代码扩展测试中没有调试器
【发布时间】:2020-08-19 08:08:51
【问题描述】:

我需要为 VS Code 的扩展调试单元测试,但无法设置任何断点。在运行测试时它们会一起被跳过,但在调试模式下运行扩展时会起作用。

重现步骤:

  1. 我克隆了https://github.com/microsoft/vscode-extension-samples
  2. 代码 helloworld-test-example
  3. 运行 npm install 并在测试中放置随机断点。
  4. 运行扩展测试时,断点没有任何影响。

before running ext. tests

after running ext. tests

任何帮助将不胜感激!

【问题讨论】:

    标签: visual-studio-code vscode-settings vscode-extensions vscode-debugger vscode-remote


    【解决方案1】:

    这可能是 Mac OS 的问题。当 VS Code 关闭时,我可以使用其他 IDE 进行调试。看来VS Code的第二个实例是用VS Code调试时的问题。

    我在 2 个 Mac OS 系统上复制了这些步骤,都使用全新安装且没有其他激活的插件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-01
      • 2010-11-25
      • 1970-01-01
      • 1970-01-01
      • 2018-12-15
      • 2019-05-08
      • 2021-03-26
      • 2023-03-30
      相关资源
      最近更新 更多