Not able to debug a plugin. Need Help!
I have uncommented the line from nuxeo.conf for debugging and restarted Nuxeo.
Added Eclipse remote debugging configuration (see the attached image)
but still I get the error : “Failed to connect to remote VM. Connection refused. Connection refused: connect”
Could someone please help in fixing this ?
the line for activating remote debugging in nuxeo.conf ships with a configured port of 8787. Did you change it to match the port 5005 your screenshot shows?
## Sample JPDA settings for remote socket debugging #JAVA_OPTS=$JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
JAVA_OPTS=$JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
You may check if a process is actually listening on port 5005, and check which process, to be sure, the Nuxeo platform is actually listening on that port.
And the LISTENING port is 9200 I dont know from where that has come
So I did close all app and started nuxeo and then run this command C:\Users\sherry.ummen>netstat -ano | find "8787"
TCP 0.0.0.0:8787 0.0.0.0:0 LISTENING 87532
So its listening on 8787 but why 0.0.0.0?
Now I start Eclipse and set the host and port exactly and click debug (note: it did not give me any error nor started any debuger) as above and run the following command C:\Users\sherry.ummen>netstat -ano | find "8787"
TCP 10.0.75.1:8787 10.0.75.1:61593 ESTABLISHED 87532
TCP 10.0.75.1:61593 10.0.75.1:8787 ESTABLISHED 154168
What does it mean ? is my debugger now hooked or what is happening?
Now I try to click on debug in eclipse again then I get the old error "Failed to connect to remote VM. Connection refused.Connection refused: connect"