Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Stopping a debug session does not terminate the app on iOS #52232

Closed
@DanTup

Description

@DanTup

When running an app on the iOS Simulator in debug mode (eg. flutter run --start-paused), the app is not terminated on the device when you stop (send an app.stop request). This happens even if the app is not paused at the time.

To repro:

  • Open a Flutter app in Android Studio or VS Code (both have same behaviour)
  • Run the app on iOS Simulator) without debugging ("Start without debugging" in VS Code, or the green triangle run button in Android Studio)
  • After the app appears, click the Stop Debugging button
  • Note that the app closes on the Simulator
  • Re-run the app with debugging (the bug icon in Android Studio, or Start Debugging in VS Code)
  • After the app appears, click the Stop Debugging button
  • Note that the app remains open in the simulator

Looking at the logs in VS Code, the --start-paused flag is the only thing I can see that's difference in these cases, so I think something it's doing is changing the behaviour when app.stop is sent.

(moved from Dart-Code/Dart-Code#2291)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: debuggingDebugging, breakpoints, expression evaluationfound in release: 3.0Found to occur in 3.0found in release: 3.1Found to occur in 3.1has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versiontoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions