flutter / flutter/devtools

Breaking on exceptions while being in widget inspector mode catches widget inspector exceptions

Offen
#4,878 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug bash P2 screen: debugger
Vorherrschende Sprache
Dart
Sterne
1.7k
Forks
404
Ø Merge
6 T. 17 Std.
Gemergte PRs (30 T.)
18

Beschreibung

How to reproduce:

- In Inspector page, enable widget inspection
- In Debugger page, select "All exceptions" to pause on all exceptions
- Select a widget in the app
- Go back to Inspector page
- You will see "Main isolate is paused in the debugger"
- Go back to Debugger page
- See that you are paused on an exception from `widget_inspector`

Ways to fix:
- When pausing on exceptions, ignore exceptions with `widget_inspector` in the stacktrace if in widget inspector mode
- Disable breakpoints during widget inspection
- Other ways?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.