Skip to content

Allow for dumping service protocol information to a file on startup #38418

Closed
@bkonyi

Description

@bkonyi

Currently all tools wishing to connect to the service protocol need to scrape the URL and authentication codes from stdout. However, this isn't always possible or convenient (@DanTup mentioned some VSCode use cases that cannot rely on listening to stdout to get the service protocol information). The VM should provide a way to dump service protocol information to a file in a well known format that can be consumed by tooling (e.g., dart --observe --dump-service-info=service.json foo.dart).

Example format:

{
  "version": 1,
  "url": "http://127.0.0.1",
  "port": 8080,
  "authentication_code": "6iSIXM0fOBk=",
}

Metadata

Metadata

Assignees

Labels

area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions