Closed fedoranvar closed 2 years ago
Failed to attach to remote debuggee VM.
is a message I'd expect to see if there is no JVM process waiting for a debugger to attach to on the specific port under configurations
. It looks like you have the attach port set to 9000.
In your netstat output I don't see any Java process on port 9000. Did you start a Java process with the debug flags set? Here's a simplified example from the readme. The example uses port 5005, but you can change it to 9000 to match your config.
@dansomething, you're right!
Indeed, recently for some reasons i've changed port 9000 to 9001 - now it's all working,
Good day to you!
the same issue "Failed to attach to remote debugee VM #12" but I didn't change port 5005....How can I fix it?
@nilm987521 have you confirmed the Java process you want to debug is waiting for a connection on port 5005? Did you set the port to 5005 in your .vimspector.json
file?
@dansomething
this is my .vimspector.json
under project folder,
"adapters": {
"java-debug-server": {
"name": "vscode-java",
"port": "${AdapterPort}"
}
},
"configurations": {
"Java Attach": {
"default": true,
"adapter": "java-debug-server",
"configuration": {
"request": "attach",
"host": "127.0.0.1",
"port": "5005"
},
"breakpoints": {
"exception": {
"caught": "N",
"uncaught": "N"
}
}
}
}
}
What about the Java process? Is it waiting for a connection on port 5005? Also, are you running the latest versions of coc-java and eclipse.jdt.ls?
Without more information, it will be difficult to troubleshoot the issue. Providing the following may help: Versions of relevant software
Relevant logs and error messages
{ "java.trace.server": "verbose" }
in :CocSettings
.:CocCommand workspace.showOutput java
.:VimspectorShowOutput Vimspector
.
:CocCommand java.debug.vimspector.start
Do you see a message like [coc.nvim] Java debug server started on port
in the output of :messages
?This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed due to lack of activity.
Good day to you!
After
:CocCommand java.debug.vimspector.start
receivedconnection refused
:.gadgets.json:
.vimspector.json:
netstat -lnpt
:Any help would be great!
Thanks!