You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support "Debug: Attach to Flutter Process" workflow for desktop #1638
in desktopRelates to running Flutter desktop appsin flutterRelates to running Flutter appsis enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
From a terminal, flutter run in flutter-desktop-embedding/example to launch the process outside of VS Code
Attempt to attach with Debug: Attach to Flutter Process
The desired behavior in this case is to prompt for a URI, but instead it goes directly into a mode where it waits for a connection (based on previous discussion, it sounds like it's scanning for a log message that's never going to arrive).
I have tested with a launch.json config using the URI (using 2.26b1) and it works fine, but that's a fairly painful process now that the auth token system prevents just hard-coding an observatory URI in both the app and the config and leaving it alone; every new run requires editing the launch.json again.
changed the title [-]New Debug: Attach to Flutter Process workflow doesn't work for desktop[/-][+]Support "Debug: Attach to Flutter Process" workflow for desktop[/+]on Apr 25, 2019
I'm re-purposing the Debug: Attach to Flutter Process command to prompt for a VM Service. The original command will be called Debug: Attach to Flutter on Device.
All the new command does, is creates a launch config that includes this:
And dart.promptForVmService is a new command that prompts for a URI, validates it, and returns it.
For vNext, using the command will or manually adding the above to your launch.json will be the only way to do this, but for a future release we'll have a "configurationSnippet" that pre-populates it for you in launch.json (to do this, we need to migrate from package.json configuration snippets to handling them in code - I've opened #1727 for this).
in desktopRelates to running Flutter desktop appsin flutterRelates to running Flutter appsis enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
Activity
[-]New Debug: Attach to Flutter Process workflow doesn't work for desktop[/-][+]Support "Debug: Attach to Flutter Process" workflow for desktop[/+]DanTup commentedon May 20, 2019
I'm re-purposing the
Debug: Attach to Flutter Processcommand to prompt for a VM Service. The original command will be calledDebug: Attach to Flutter on Device.All the new command does, is creates a launch config that includes this:
And
dart.promptForVmServiceis a new command that prompts for a URI, validates it, and returns it.For vNext, using the command will or manually adding the above to your
launch.jsonwill be the only way to do this, but for a future release we'll have a "configurationSnippet" that pre-populates it for you in launch.json (to do this, we need to migrate from package.json configuration snippets to handling them in code - I've opened #1727 for this).Add a new Flutter: Attach to Process option that prompts for VM Service
Add a new Flutter: Attach to Process option that prompts for VM Service