Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the launch configuration name as the terminal name #1508

Closed
MikeJCusack opened this issue Aug 29, 2024 · 9 comments
Closed

Use the launch configuration name as the terminal name #1508

MikeJCusack opened this issue Aug 29, 2024 · 9 comments

Comments

@MikeJCusack
Copy link

Recreating from microsoft/vscode#80442. This behavior is still present.

Description from linked ticket:

Currently when running or debugging a launch target, the default terminal names are generic and don't reflect the launch target.

This makes it hard to know which terminal relates to which launch, particularly when you have 3 or more launches running.

Example

a Java launch target named Debug (Launch) - webapp results in a terminal named 2: Java Debug Console . I suggest that the terminal name becomes Debug (Launch) - webapp or alternatively support an override field in the launch.json to configure per launch target.

It was stated that this behavior is controlled by the debugger. Please implement this functionality for the Java debugger.

@testforstephen
Copy link
Contributor

Actually we have supported it a long time ago. What debugger version did you use?

image

image

@MikeJCusack
Copy link
Author

@testforstephen This does not work for microservices where they use the same entry class. It should be configurable in the launch configuration, which is what was asked in the original issue.
image

@MikeJCusack
Copy link
Author

Which is also why this issue is titled the way it is. Sorry that wasn't more clear in the description.

@testforstephen
Copy link
Contributor

Since you're using microservice, you can change the user setting to "java.debug.settings.console": "internalConsole". That will use the DEBUG CONSOLE to print output instead of terminal, and also supports the launch configuration name as the console title.

image

The only difference between CONSOLE and TERMINAL is that the terminal accepts user input. Since you're service code, I guess user input is not needed.

@MikeJCusack
Copy link
Author

@testforstephen Ok, that works, thank you. Is there a way to have the debug consoles sorted / run alphabetically? It seems to run them randomly and difficult to see which services are properly running.

@testforstephen
Copy link
Contributor

this debug console order is controlled by the vscode client itself, not by the Java extension. It should sort the console titles by the time sequence of the creation of console.

@MikeJCusack
Copy link
Author

So is there no way to configure a start order so that the time sequence is what you want?

@testforstephen
Copy link
Contributor

So is there no way to configure a start order so that the time sequence is what you want?

How did you launch the app? Isn't the start order controlled by your manual click on run/debug action?

@MikeJCusack
Copy link
Author

I have a compound launch configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants