Vscode: Support multi target debugging

Created on 10 Oct 2016  路  10Comments  路  Source: microsoft/vscode

Support multiple debug sessions in a single instance of VS Code.

This helps with the following scenarios:

  • debug a client and a server
  • debug a clustered program
  • debug a multi process application
  • debug an extension and its debug adapter and/or language server at the same time

Problems to address:

  • multiple debug models or one 'super model'?
  • how to launch multiple sessions with a single 'F5'?
  • UI: Process view vs. Windows vs. tabs...
debug feature-request

Most helpful comment

We have added support for mutliple debug sessions. The current way to enable this might change in the future, it is still experimental.

For how to enable compound debugging check #14842

All 10 comments

Debugging a language-server & client in one instance would be nice...

+1 for this, maybe we can debug just like webstorm way.

and please consider about auto attach to the new worker since it will be auto reload at development.

and plz also take a look at https://github.com/Microsoft/vscode-node-debug/issues/99

The plan is to allow multiple debug sessions in a single VS Code instance. This requires that the debug model/service can be instantiated multiple times. How multiple debug sessions are presented in the UI is an independent issue: probably we will start with something simple, e.g. a simple session switcher or by introducing processes as the top level elements in the call stack view.

We have added support for mutliple debug sessions. The current way to enable this might change in the future, it is still experimental.

For how to enable compound debugging check #14842

This is awesome, thanks a lot!

How do I know when it will be released?

@gerich-home https://github.com/Microsoft/vscode/issues/13342

Also this experimental feature is currently available in the vscode insiders

For anyone stumbling upon this issue via Google (like me), the syntax for compound launch configs has changed since @isidorn's earlier comment. There's a usage example here:

https://github.com/Microsoft/vscode/issues/14842#issuecomment-262730707

Also it would be great if there were an ability to switch between target outputs, (atm they are merged):

image

@Deathangel908 please create a new issue since this issue is already closed.

Was this page helpful?
0 / 5 - 0 ratings