Remote Debugging
I don't quite understand how to debug Server side components. Everyone tells me that it is easy, but you cannot find documentation anywhere, and I think most of the time the application that they debug might be small simple applications.
I have been able to startup Weblogic in debug mode, with the parameters, but if I start a debug session with the remote configuration pointing to the JVM of Weblogic, it connects and that is all. Obviously no code is running on the Weblogic server at that time. That makes sense to me.
So now I have this JUnit class that I want to step through, it will use the code that is on the server side running in Weblogic's JVM.
Do I have to start a second debugging session in IDEA, and while I step through the code, when it reaches serverside code, it will step through it via the other debugging session that is also open? Or do I have to run the JUnit class in a dos prompt, and when a call is made to the server, the one debugging session that is connected to the server will stop the serverside code when it reaches a breakpoint.
Please help me understand this process.
Thanks everyone
Mark Spritzler
Please sign in to leave a comment.
Mark Spritzler wrote:
Well, there -is- code running on the Weblogic server, but maybe not
currently -your- code. If you set a breakpoint in an EJB or servlet
thats running on the server, when it is invoked by someone browsing the
server, IDEA will stop at the breakpoint letting you single step through
, examing the strack and all associated objects you can access.
Start the remote debug, then run the unit test. When you test calls the
remote code ( I assume an EJB call ) then the debug session should kick
in for single stepping.
Mark
Thanks Mark,
that makes sense.
SO I can actually run my test in a DOS prompt, and when it calls the server side code then IDEA will reach the breakpoint and stop.
Mark