Skip to content

When auto-attaching with a VM Service URI, support probing for some time (~30s?) to ensure the VM Service is accessible before starting the debug session #5614

Closed

Description

@DanTup

To help avoid timing issues with autolaunch.json, when we are provided with a VM Service URI, we should support probing it from the extension to ensure it's accessible before we try to start a debug session. This way we can just start up later rather than failing if we react to the file before the service is fully accessible. We should make this opt-in with a flag:

{
  "type": "dart",
  "request": "attach",
  "name": "Attach to Flutter",
  "vmServiceUri": "ws://xxx",
  "waitForVmServiceMs": 30000, // number of ms to wait for vmServiceUri to become accessible

}

cc @keertip

Activity

  1. added this to the v3.116.0 milestone on Jul 28, 2025
  2. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    in debuggingRelates to the debug adapter or process of running debug sessions
    on Jul 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in debuggingRelates to the debug adapter or process of running debug sessionsis enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions