【问题标题】:VSCode: Cannot read property 'includes' of undefinedVSCode:无法读取未定义的属性“包含”
【发布时间】:2020-11-18 15:05:34
【问题描述】:

我遵循了“https://code.visualstudio.com/docs/cpp/config-clang-mac”的文档 在表单步骤中不存在错误,但是当我选择 Run > Add Configuration... 然后选择 C++ (GDB/LLDB) 时,错误存在“无法读取属性” 这是编辑launch.json文件的一个步骤

【问题讨论】:

    标签: visual-studio-code vscode-settings


    【解决方案1】:

    我也在 Windows 上使用 WSL 和 Debian 主机获得了这个。我认为有一个错误,但很容易克服。

    在.vscode目录下右键新建launch.json文件,选择'new file'。

    从这个页面粘贴launch.json内容:https://code.visualstudio.com/docs/cpp/config-wsl

    确保“preLaunchTask”与您在 tasks.json 中的构建任务名称相匹配,确保您安装了适当的调试器等。

    它现在应该可以工作了。

    【讨论】:

      猜你喜欢
      • 2019-07-26
      • 2021-12-21
      • 2020-05-12
      • 2021-03-04
      • 1970-01-01
      • 1970-01-01
      • 2021-05-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多