Skip to content

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

@martin-azpillaga

Description

@martin-azpillaga

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions