Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ class BreakpointManager with DisposerMixin {
if ([
EventKind.kPauseStart,
EventKind.kPausePostRequest,
// We check for a resume event because package:dwds sends a resume event
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you happen to know why we do this? This feels like a bug.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A very good question (that could perhaps also be asked about other related code, for example why is the notifyPausedAtStart method not notifying), but from my investigation:

(For reference, current code pointers here: #9124 (comment))

So dwds is sending the Resume event to say "the isolate has been created and resumed." At least that is my understanding.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think this is a bug. Can you file an issue against DWDS and reference it here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// after a hot-restart. See:
// https://github.com/dart-lang/webdev/issues/2610
EventKind.kResume,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should make sure this doesn't cause issues for non-web apps.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed! Testing now

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed non-web apps still work as expected. Also looking into what is required to reenable the debugger panel integration test on web, since I believe that would have caught this regression: #7732

].contains(pauseEventKind)) {
await serviceConnection.serviceManager.isolateManager.resumeIsolate(
isolateRef,
Expand Down
3 changes: 2 additions & 1 deletion packages/devtools_app/release_notes/NEXT_RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ To learn more about DevTools, check out the

## General updates

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

## Inspector updates

Expand Down