Skip to content

Provide a configuration option for dynamic multi-target debug session naming. #246208

Closed as not planned
@eduebury159

Description

@eduebury159

When the same debug configuration is used for multi-target debugging (e.g same configuration used to attach to 2 processes on two different ports). The debugging UI widget (the one with step/next buttons) shows a dropdown (say the debug configuration is named "Debug Session") with "Debug Session 1", "Debug Session 2", etc.

Would it be possible to add an option in the configuration of launch.json to customize the names dynamically e.g "Debug Session ${input:port}". This can be done directly in the "name" property but, it is kind of a hack, because it shows literally the "${input:port}" string when displayed in the UI "Run and Debug" and only subsitute to the port number when added to the UI widget when a debug session is running. E.g

Image

I would propose to modify the name property like {"name": {"static": "Debug Session", "session": "Debug Session ${input:port}" to have a better UX experience

Metadata

Metadata

Assignees

Labels

debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions