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

[java] Cannot start the Java LS in debug mode #2326

Closed
kittaakos opened this issue Jul 10, 2018 · 2 comments
Closed

[java] Cannot start the Java LS in debug mode #2326

kittaakos opened this issue Jul 10, 2018 · 2 comments
Labels
bug bugs found in the application java issues related to the java language

Comments

@kittaakos
Copy link
Contributor

I got this when starting the server with DEBUG_MODE = true.

ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugInit.c:750]
@kittaakos kittaakos added bug bugs found in the application java issues related to the java language labels Jul 10, 2018
@kittaakos
Copy link
Contributor Author

kittaakos commented Jul 10, 2018

One has to change the order of the arguments. It seems, the debug mode has never worked before:

if (debug) {
    args.push('-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1044');
}

args.push(...[
    '-Declipse.application=org.eclipse.jdt.ls.core.id1',
    '-Dosgi.bundles.defaultStartLevel=4',
    '-Declipse.product=org.eclipse.jdt.ls.core.product'
]);

if (debug) {
    args.push('-Dlog.level=ALL');
}

Edit: updated the snippet.

@kittaakos
Copy link
Contributor Author

Closed via #1845.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application java issues related to the java language
Projects
None yet
Development

No branches or pull requests

1 participant