开发者

Is it possible to debug 2 programs in Eclipse at the same time?

E开发者_Python百科verything is in the question. I wrote an UDP server/client and I want to debug both of them when the client sends a request to the server. How can I achieve that !!


Yes it is possible I do this all the time, when doing messaging based applications. Run each of your programs in debug mode, and make sure you are in the debug perspective where you will be able to see both apps in Debug view and can place break points.

If the client and server are running on different machines you will need to use remote debugging, which will require you to start the JVM with the remote debug options, and you will have to edit the run configuration for your client and server to enable remote debugging, check the eclipse help for the steps needed to setup remote debugging.


Very much possible. Just set you breakpoints for both projects and run both. You'll see two programs running in the console and in the thread tree view.


right click with mouse... "debug as" "java application"..

do it 2 times on different java files..

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜