• 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

How to debug server app when client app also needs to be deployed on Tomcat?

 
Bartender
Posts: 1971
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I have a situation where I have a server application and a client application where they're both Web apps deployed under Tomcat - locally.

Using a URL for the client application, the client calls the server application and does stuff.

All this is working in Tomcat.

Currently the other developers are just using output logs for debugging, but I want to have actual symbolic debugging within Intellij, if possible.

-----------

Where I'm confused is how to go about debugging the server code when the client needs to be loaded too to call it. I want to be able to set a breakpoint in a class on the server code and then have Intellij let me step through the server code when it hits the breakpoint.

However, since the client application also needs to be running in this case, it doesn't seem that I can just "start" the server code in Intellij and then debug -- since the client is not running now (Intellij is running Tomcat for just the server application being deployed).

I thought that this situation might be a case for remote debugging, but if so, I don't see any obvious ways to connect to the Tomcat instance and no real good step by step instructions.

Would appreciate any suggestions on how to handle this so I can debug the server code when the client app's Webpage calls it.
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How would you "unit-test" the server code?

 
Mike London
Bartender
Posts: 1971
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

K. Tsang wrote:How would you "unit-test" the server code?



Another good question.

Hopefully there is an answer for both yours and mine.

Thanks,

- mike
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic