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.