flutter / flutter/devtools

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

未关闭
#4,878 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug bash P2 screen: debugger
主要语言
Dart
星标
1.7k
派生
404
平均合并
6 天 17 小时
30 天内合并 PR
18

描述

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?

贡献指南

打开贡献指南

调研方向

在启用 widget inspection 并选中““All exceptions””的情况下,在 Inspector 和 Debugger 页面上复现该工作流。跟踪堆栈跟踪中包含 `widget_inspector` 的异常如何到达暂停行为;完成的标准是 widget-inspector 异常不再中断检查,而普通异常仍然会暂停。

由索引模型根据 Issue 内容生成。

评估

技术栈
dart, flutter
领域
devtools
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。