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

@DanTup

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    in debuggingRelates to the debug adapter or process of running debug sessionsis enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions