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

Add option to attach debugger to the language server process #76

Open
martin-azpillaga opened this issue Jun 7, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@martin-azpillaga
Copy link
Collaborator

Currently, the language server is started with the command:

java -jar <path_to_jar>

I suggest adding a boolean flag to the gradle plugin's configuration called development:

languageServer {
    development = true // false by default
}

that when enabled adds the following jvm configuration to the language server process:

java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005,quiet=y -jar <path_to_jar>

This way, editors can attach to the running process in port 5005 and enable debugging the language server.
I have successfully managed to do it from vscode by modifying the command manually.

@martin-azpillaga martin-azpillaga added the enhancement New feature or request label Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant