• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Debugging Server code in IDEA and Eclipse

 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author
Posts: 234
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic