debugging - Eclipse JDWP error when trying to debug -


i following error when trying debug local java application in eclipse.

fatal error in native method: jdwp no transports initialized, jvmtierror=agent_error_transport_init(197) error: transport error 202: connect failed: connection refused error: jdwp transport dt_socket failed initialize, transport_init(510) jdwp exit error agent_error_transport_init(197): no transports initialized [../../../src/share/back/debuginit.c:690] 

i read might caused using same port 1 eclipse wants use debugging, how determine port number. couldn't find in error log or preferences.

any ideas?

i ran same issue , turns out specifying server=n parameter in jdwp debug string. turns out if specify server=n in debug connection string, it'll attempt attach/connect port instead of listening on it. switching server=y solved issue. it's documented in official jpda documentation.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -