flutter / flutter/devtools

Code view likely references old script objects after hot reload

Aperta
#6,151 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
P2 screen: debugger
Lingua principale
Dart
Stelle
1.7k
Fork
404
Merge medio
6g 17h
PR unite (30g)
18

Descrizione

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)

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
dart, flutter
Ambito
developer-experience, tooling
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.