[Feature] Passive exception capture mode in the Debugger tab
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
调研方向
从“Debugger”标签页的异常模式选择器开始,跟踪它如何处理 VM Service Debug 事件流事件以及恢复行为。检查“Logging”标签页和 DevTools 本地服务器进程,了解现有的输出路径。完成标准是:仅限 Debug Mode 的“Log exceptions”选项能够将包含 route、timestamp 和 count 的去重异常详细信息记录到指定的 .devtools Markdown 文件中。
由索引模型根据 Issue 内容生成。
描述
Problem
The Debugger's existing exception modes (Ignore, Uncaught, All) - all share the same behaviour: the VM pauses and waits for the developer to resume. This breaks down for intermittent bugs, timing-sensitive flows, and exceptions that are hard to reproduce on demand. There is currently no way to let the app run freely and collect exception data without altering the conditions that produced it.
The Logging tab surfaces FlutterError output but as a raw unstructured stream - no deduplication, no route context, no export. It is not designed for this workflow.
Proposed solution
Add a fourth option to the existing exception mode selector in the Debugger tab:
- Ignore exceptions
- Uncaught exceptions
- All exceptions
- Log exceptions <- new
When active, DevTools listens to the VM Service Debug event stream for exception events without sending a resume signal - the VM is already emitting these, this mode just doesn't pause on them. Captured exceptions are deduplicated by stack trace hash and written continuosly to Example - ".devtools/exception_log_<timestamp>.md" at project root via the DevTools local server process written to disk as exceptions are captured.
Each entry captures exception type, message, stack trace, current route, timestamp, and occurrence count for Debug Mode only.
- 主要语言
- Dart
- 星标
- 1.7k
- 派生
- 406
- 平均合并
- 3 天 19 小时
- 30 天内合并 PR
- 11
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
flutter/devtools 的其他 Issue
-
[devtools_extensions] build_and_copy passes the deprecated --pwa-strategy flag可能已有人在做 @spydon 于 3 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 92/100
维护者通常 2 天内回复
-
P1 type-code-health
难度 2/5 1-3 小时 新手友好度 85/100
flutter/devtools#9973 · 3 条评论 ·
维护者通常 2 天内回复
-
cost: low P2 type-code-health
难度 2/5 1-3 小时 新手友好度 68/100
flutter/devtools#9942 · 3 条评论 ·
维护者通常 2 天内回复
-
contributions welcome cross-screen inspector-2.0-polish P2
难度 2/5 1-3 小时 新手友好度 65/100
flutter/devtools#8936 · 3 条评论 ·
维护者通常 2 天内回复
-
cross-screen P3
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 2 天内回复
相似的 Issue
-
area: youtube bug issue linux needs logs windows
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
Notsfsssf/pixez-flutter#1379 ·
维护者通常 2 天内回复
-
1.severity: security
难度 2/5 1-3 小时 新手友好度 62/100
NixOS/nixpkgs#569828 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
MaikuB/flutter_appauth#683 ·