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

Skip to content

Need a way of interrupting a misbehaving app #6689

Closed
@lukechurch

Description

@lukechurch

Steps to Reproduce

I have a fork of the gallery that I seem to have introduced a bug into (https://github.com/dart-lang/flit/tree/flitted_gallery/flitted_gallery)

When run the app via Flutter run, on the iOS simulator, it behaves until I tap "Shrine" -- which is probably where I have introduced the bug.

After this, the simulator stops responding, and "R" takes multiple minutes to complete. There is no error shown on the simulator or on the console. Connecting to the observatory doesn't work.

Interaction from the IntellIJ plugin, such as breaking, doesn't appear to have an effect.

Recommendations

  • Restart should work independently of the state of the app
  • It would be great to be able to have a way to forcibly pause an app, even if it was misbehaving, to inspect the stack trace
  • When the FPS of an app drops below say 1 fps, for more than 5s, it is almost certainly broken. It would be great to have a mode where the app would halt itself if it was misbehaving that badly to give the developer an opportunity to understand what was going on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    t: hot reloadReloading code during "flutter run"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions