Skip to content

Detecting launched web servers and/or browser instances #153

@lostintangent

Description

@lostintangent

The Live Share extension in Visual Studio Code already allows sharing debug sessions between collaborators when the host runs a launch configuration, and manually forwarding application ports, however, we would love to be able to support the following capabilities as well, to improve/simplify collaborative-debugging:

  1. Automatically detecting whether the debug adapter launched a new web server (e.g. ASP.NET Core, Node.js), and if so, which port it is listening to. This would allow us to transparently forward that port from the host's machine to the guest's machine, so that the guest could access/interact with the web app/API, without the hosting user needing to explicitly perform the port forward themselves (via a command in the command palette).

  2. Automatically detecting whether the debug adapter launched a new web browser (e.g. ASP.NET Core, Chrome Debugger), and if so, which URL it navigated to. This would allow us to launch a browser on the guest's machine as well, so that all participants within a collaboration session could be viewing the same app, without needing to manually discover/navigate to it themselves.

We currently support both of these experiences from Visual Studio thanks to the project system, but it would be great to have some kind of general-purpose mechanism in the debug protocol (two new event types that adapters could fire?) to allow debug adapters to announce this metadata.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions