Skip to content

Commit 29a7a1f

Browse files
committed
Prevent web apps from freezing after hot-restarts triggered from DevTools (#9125)
1 parent 1fb2f4c commit 29a7a1f

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

packages/devtools_app/lib/src/screens/debugger/breakpoint_manager.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ class BreakpointManager with DisposerMixin {
9393
if ([
9494
EventKind.kPauseStart,
9595
EventKind.kPausePostRequest,
96+
// We check for a resume event because package:dwds sends a resume event
97+
// after a hot-restart. See:
98+
// https://github.com/dart-lang/webdev/issues/2610
99+
EventKind.kResume,
96100
].contains(pauseEventKind)) {
97101
await serviceConnection.serviceManager.isolateManager.resumeIsolate(
98102
isolateRef,

packages/devtools_app/release_notes/NEXT_RELEASE_NOTES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ To learn more about DevTools, check out the
1515

1616
## General updates
1717

18+
* Prevent web apps from remaining paused after triggering a hot-restart from
19+
DevTools. - [#9125](https://github.com/flutter/devtools/pull/9125)
20+
1821
* Added a memory pressure warning that allows you to reduce the memory usage of
1922
DevTools in order to avoid an OOM crash. -
2023
[#8989](https://github.com/flutter/devtools/pull/8989),

0 commit comments

Comments
 (0)