Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Debugging Server code in IDEA and Eclipse

 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bill Dudney
Author
Ranch Hand
Posts: 234
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic