【问题标题】:“Cannot find debug adapter for type 'dart". ”“找不到类型‘dart’的调试适配器。”
【发布时间】:2023-03-11 08:09:01
【问题描述】:

我正在尝试在 vs 代码中调试 dart 脚本。

下面是我的 launch.json -

    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        
        
        {
            "name": "todoapp",
            "request": "launch",
            "type": "dart"
        }
    ]
} ```

【问题讨论】:

  • 知道如何解决这个问题吗?
  • 请尝试禁用除 Dart 之外的所有扩展,看看它是否会消失。如果是这样,请使用新的“扩展二等分”功能来追踪导致它的扩展。如果没有,请在github.com/Dart-Code/Dart-Code 提出问题,我们可以进行故障排除。

标签: json flutter dart visual-studio-code


【解决方案1】:

转到扩展视图 (⇧⌘X) 并搜索 Dart 扩展。尝试卸载并重新安装 Dart 扩展,然后重新启动 VS 代码看看是否有效。

如果仍然无法正常工作,请安装旧版本的 Dart 并再次尝试。

【讨论】:

    猜你喜欢
    • 2019-12-01
    • 1970-01-01
    • 2021-05-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-05-23
    • 1970-01-01
    相关资源
    最近更新 更多