Skip to content

Request: an easy way to re-establish an Observatory connection to a running app #5043

@sethladd

Description

@sethladd

It's easy for an android app to get killed when the device runs out of memory, etc. When the app is brought back up (e.g. when the user taps the app launcher icon again), it creates a new observatory port. Unfortunately, it's difficult to re-establish the connection unless you know about adb logcat and adb forward. During profiling and debugging, it's all about Observatory and so when the Observatory connection dies, my profiling workflow dies.

I was doing a full flutter run --profile but that's a slow process to run if all I'm trying to do is bring back Observatory.

May I suggest we offer something like a flutter connect command that finds the running Flutter app on the device/emulator and does any port forwarding/mapping business.

That would be a YUGE time saver as we're profiling our Flutter apps.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: new featureNothing broken; request for a new capabilitygood first issueRelatively approachable for first-time contributorstoolAffects 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