简体   繁体   中英

Debugging RMI application with Ecllipse

I have an RMI application that have multiple Peers. I wish to make use of Eclipse IDE to debug it (setting breakpoint etc.). How to running multiple Peers at the same time while be able to setting breakpoint? Thanks.

Currently I am using windows 7 command line, open multiple command line windows, and test multiple Peers a the same time. (of course we need to start rmiregistry using the command line windows before testing)

I am open to other IDE that can better debug these types of application.

I think you should start your applications with option: -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y

thus the applications can stop to wait for the connection and then you can use IDE to do remote debug.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM