You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Flutter开发:VS Code Debug Console无法正常显示错误信息

VS Code Flutter Debug Console 无颜色与跳转链接问题解决
  • 检查Flutter/Dart插件版本
    打开VS Code扩展面板(Ctrl+Shift+X),找到Flutter和Dart插件,确保是最新版本。旧版本常缺失Debug Console的高亮与跳转支持,点击“更新”按钮完成升级。

  • 调整Debug Console输出配置
    打开VS Code设置(Ctrl+,),搜索dart.debugConsoleLogPreferences,确认以下两项为启用状态:

    • showColors → true
    • showLinks → true
      也可直接在settings.json中添加配置:
"dart.debugConsoleLogPreferences": {
    "showColors": true,
    "showLinks": true
}
  • 确认启动模式为Debug
    必须通过Debug模式启动应用(点击右上角绿色调试按钮或按F5),而非直接运行(Ctrl+F5)。只有Debug模式下,Debug Console才会加载完整的格式化与跳转功能。

  • 重置VS Code配置(兜底方案)
    若上述方法无效,可尝试重置用户配置:

    1. 打开命令面板(Ctrl+Shift+P),输入Preferences: Open User Settings (JSON)
    2. 备份当前配置后清空文件并保存
    3. 重启VS Code,重新配置Flutter环境

内容的提问来源于stack exchange,提问作者Isakkiii

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.04 12:30:57