Skip to content

Unpause and remove breakpoints when detaching from Flutter process with DAP#101695

Merged
DanTup merged 1 commit intoflutter:masterfrom
DanTup:resume-on-detach
Apr 11, 2022
Merged

Unpause and remove breakpoints when detaching from Flutter process with DAP#101695
DanTup merged 1 commit intoflutter:masterfrom
DanTup:resume-on-detach

Conversation

@DanTup
Copy link
Contributor

@DanTup DanTup commented Apr 11, 2022

This cleans up by removing breakpoints, disabling pause-on-exceptions and resuming threads when detaching from a Flutter process you attached to to debug (this matches the Dart DAP behaviour).

This prevents a user attaching, setting a bunch of breakpoints to debug, then detaching and finding the app is still unresponsive because it's hitting breakpoints without a debugger attached.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Apr 11, 2022
Copy link
Contributor

@christopherfujino christopherfujino left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@Jasguerrero Jasguerrero left a comment

Choose a reason for hiding this comment

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

LGTM

@DanTup DanTup merged commit 675b961 into flutter:master Apr 11, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Apr 11, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 11, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 11, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants