Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the default properties that eclipse uses to launch a java process in its debugging mode?

Tags:

java

eclipse

jdb

I would like to connect to java process started by eclipse using a command line debugger but not sure what default properties of the eclipse launched java process are ? I wouldn't mind using attaching using sockets but not sure how much slower that would be ?

like image 753
aakarsh Avatar asked May 11 '26 13:05

aakarsh


1 Answers

how about

-Xdebug -Xnoagent -agentlib:jdwp=transport=dt_socket,suspend=n,address=localhost:12345

then you can attach a java debugger to port 12345

like image 183
Ron Avatar answered May 14 '26 03:05

Ron



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!