[Feature] Passive exception capture mode in the Debugger tab
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu từ bộ chọn chế độ ngoại lệ của tab „Debugger“ và lần theo cách nó xử lý các sự kiện trong luồng sự kiện VM Service Debug cũng như hành vi tiếp tục. Xem lại tab „Logging“ và tiến trình máy chủ cục bộ của DevTools để tìm các đường dẫn đầu ra hiện có. Được xem là hoàn tất khi một tùy chọn „Log exceptions“ chỉ dành cho Debug Mode ghi lại các chi tiết ngoại lệ đã loại bỏ trùng lặp, kèm route, timestamp và count, vào tệp Markdown .devtools được chỉ định.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Dart
- Star
- 1.7k
- Fork
- 405
- Merge trung bình
- 4 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 15
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của flutter/devtools
-
cleanup P1
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
`dcm analyze` false positives Đang mởa: quality cost: low P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
contributions welcome cross-screen inspector-2.0-polish P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Support removing storage keys Đang mởcross-screen P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
documentation good first issue P2
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Tất cả issue của flutter/devtools
Issue tương tự
-
[Bug]: New version of nm package Đang mởbug triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
fluttercommunity/plus_plugins#3979 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
from.page-issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
enhancement UI: Material
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Notsfsssf/pixez-flutter#1360 ·
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100