Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Feature] Passive exception capture mode in the Debugger tab

Đang mở
#9,854 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
dart
Lĩnh vực
devtools

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ả

enhancement P2 screen: debugger

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

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của flutter/devtools

Tất cả issue của flutter/devtools

Issue tương tự

Thêm issue về Dart

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.