aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Debugging Server code in IDEA and Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Debugging Server code in IDEA and Eclipse" Watch "Debugging Server code in IDEA and Eclipse" New topic
Author

Debugging Server code in IDEA and Eclipse

Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Does anyone have this setup.

I am able to connect to the server with IDEA, but obviously no code is run when that debugger is started. So how do you then run a client in debug mode that will step through server code when it does lookups and remote method calls. Do you start another debugger, so two are running, or can you start the client through a dos prompt and the first debugger will start stepping through code when that client outside of the IDE calls a method where there is a breakpoint.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Bill Dudney
Author
Ranch Hand

Joined: Sep 05, 2003
Posts: 234
Hi Mark,

I usually use Cactus as the driver to invoke my server side code while debugging. You can find more about it on the apache site or just google 'cactus j2ee testing' and you should see lots of hits.

Good Luck!


TTFN,<br /> <br />-bd-<br /> <br /><a href="http://www.amazon.com/exec/obidos/ASIN/0471449156/qid=1064343733/sr=2-1/ref=sr_2_1/002-8375300-3666449" target="_blank" rel="nofollow">Jakarta Pitfalls</a> | <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0471146153/qid=1064343733/sr=1-2/ref=sr_1_2/002-8375300-3666449?v=glance&s=books" target="_blank" rel="nofollow">J2EE AntiPatterns</a> | <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0471462071/qid=1064343733/sr=1-3/ref=sr_1_3/002-8375300-3666449?v=glance&s=books" target="_blank" rel="nofollow">Mastering JavaServer Faces</a> | <a href="http://bill.dudney.net/roller/page/bill" target="_blank" rel="nofollow">Blog</a> | <a href="http://www.jroller.com/page/BillDudney" target="_blank" rel="nofollow">Eclipse Blog</a> | <a href="http://www.sourcebeat.com/TitleAction.do?id=2" target="_blank" rel="nofollow">Eclipse 3 Live</a>
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Thanks Bill, I think I have an better understanding of debugging. I had gotten IDEA to connect to a remote JVM in the BEA App Server, it was the next step that I wasn't sure about.

All I need to do next is put a breakpoint in any of my serverside classes, then run my JUnit test from a dos prompt, when the code that has the breakpoint is reached, IDEA will stop the code and be in debug mode.

Thanks

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Debugging Server code in IDEA and Eclipse
 
Similar Threads
debugging
Please explain why? And also explain, while Debugging, how to make debugging from beginning of a met
Code works in debug but does not work in regular run
IDE ??
This weeks Giveaway