Skip to content

Commit 75f58db

Browse files
authored
Prevent web apps from freezing after hot-restarts triggered from DevTools (#9125)
1 parent 7103845 commit 75f58db

2 files changed

Lines changed: 6 additions & 1 deletion

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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ To learn more about DevTools, check out the
1515

1616
## General updates
1717

18-
TODO: Remove this section if there are not any general updates.
18+
- Prevent web apps from remaining paused after triggering a hot-restart from
19+
DevTools. - [#9125](https://github.com/flutter/devtools/pull/9125)
1920

2021
## Inspector updates
2122

0 commit comments

Comments
 (0)