cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Debug error "Failed to connect to remote VM"

Former Member
0 Kudos
7,482

Hi experts

i've the following message when i try to run debug in sts:

"Failed to connect to remote VM. Connection refused. Connection refused: connect"

i saw that port 8000 is not open, even if in project.properties there's the correct property: tomcat.debugjavaoptions=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n

does anyone has some idea?this's very urgent because now i'm not able to debug.

Thanks for your precious help Marco

View Entire Topic
manjeesh86
Discoverer
0 Kudos

I had same issue and found another process running in machine on port 8000 and 8001 (Windows: netstat -a). I switched to 8005 and its working.
tomcat.debugjavaoptions=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=8005,suspend=n -Xverify:none -DforceANSI=true

Try it.