flutter / flutter/devtools

[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
enhancement P2 screen: debugger
Ngôn ngữ chính
Dart
Star
1.7k
Fork
404
Merge trung bình
6 ngày 17 giờ
Pull request đã merge (30 ngày)
18

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_.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.

Hướng dẫn đóng góp

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

Đánh giá

Issue này chưa được đánh giá.

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.