flutter / flutter/devtools

Code view likely references old script objects after hot reload

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

描述

If a script is changed as the result of a hot reload, the `Script` object needs to be re-retrieved to get its updated VM service object ID as the internal `Script` object has been replaced by the VM.

Some issues that are likely related to this are:
- Code coverage and profiler hits disappear after a hot reload
- Rendered sources are out of date after a hot reload
- Breakpoint state isn't cleared in scripts that were hot reloaded (e.g., breakpoints are displayed even though they aren't automatically reset for the new script)

贡献指南

打开贡献指南

调研方向

Start by tracing the Code view's Script lookup during hot reload and how it obtains the VM service object ID. Use the reported coverage and profiler hits, rendered sources, and breakpoint state as verification points; done means these remain correct after a script is hot reloaded.

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

评估

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

把新 issue 发到你的邮箱

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