【问题标题】:VSCode - Starting debugging for an extension gives process terminated errorVSCode - 开始调试扩展会导致进程终止错误
【发布时间】:2021-12-13 16:53:57
【问题描述】:

我跟着VSCode extension development guide创建了一个新的扩展项目。 开始调试扩展程序给了 -
The terminal process "/bin/zsh '-c', 'npm run watch'" terminated with exit code: 1.

另一个question 似乎相关,但我确实在答案中提到的设置中的Terminal>Integrated 下检查了Inherit Env
我也在mac os上。

【问题讨论】:

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


    【解决方案1】:

    对我来说,解决方案是添加

    "watch": {
            "files": "**/*.ts"
        },
    

    package.json 文件中,与“脚本”处于同一级别,基于npm-watch documentation

    【讨论】:

      猜你喜欢
      • 2017-02-25
      • 1970-01-01
      • 1970-01-01
      • 2021-07-20
      • 2021-12-08
      • 1970-01-01
      • 2020-07-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多