flutter / flutter/devtools

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

Open
#4,878 1 comment 0 reactions 0 assignees View on GitHub
bug bash P2 screen: debugger
Dominant language
Dart
Stars
1.7k
Forks
404
Avg merge
6d 17h
Merged PRs (30d)
18

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.