Skip to content

Attach to custom embedder running #4506

@provokateurin

Description

@provokateurin

I'm writing a plugin for a custom embedder and I need the flutter plugin to attach to my running flutter app. I get the observatory URI and all necessary parameters to generate a command line attach (sdkFields.createFlutterSdkAttachCommand: /home/jld3103/flutter/bin/flutter --no-color attach --machine --device-id=flutter-tester --debug-uri=http://127.0.0.1:50300/ lib/main_desktop.dart).
That command works when I run it in the console.
In the plugin I use some code derived from this.
It gives me a dialog saying that no device was found.

So my question is how to attach the flutter plugin from another plugin to a flutter app running a custom embedder?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions