Code view likely references old script objects after hot reload
Open
P2
screen: debugger
- Dominant language
- Dart
- Stars
- 1.7k
- Forks
- 404
- Avg merge
- 6d 17h
- Merged PRs (30d)
- 18
Description
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)
Contributor guide
Assessment
This issue has not been assessed yet.