Closed EnriqueBravo115 closed 1 year ago
You need to start the java app with something like -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
so it's listening on 5005 for debugging.
Thanks, I couldn't solve the problem but it's ready, i run springboot maven with:
mvn spring-boot run -Dspring-boot.run.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
gradle: gradle bootRun --debug-jvm
Do you still get the same error?
One issue with multi-module projects is that you'd need to add the projectName
to the configuration.
E.g. a complete configuration may look like this:
No bro, i solve now, dont worry
LSP client configuration
Also i set:
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
Eclipse.jdt.ls version
1.22.0
Steps to Reproduce
When i set a breackpoint and choose the option
attach
in dap.configurations.java i getfailed to attach to remote debuggee vm. reason java.net.connectexception connection refused
Expected Result
Connect the debugger to applications springboot and get information in dap
Actual Result
[ERROR][2023-05-10 22:38:02] ...lsp/handlers.lua:535 "10 may. 2023 22:38:02 [error response][attach]: Failed to attach to remote debuggee VM. Reason: java.net.ConnectException: Conexión rehusada\nFailed to attach to remote debuggee VM.