Debugging Remote Java Application - I
14 June 2008Debugging is very helpful is following the flow of an application and knowing what happens when. You get list of variables with their values and you can flow what exactly is happening. It really helps is identifying the problem areas. Debugging in Eclipse is really simple and easy. I assume that you have done debugging in Eclipse.
Debugging a J2EE application is a bit tricky since the application is deployed in web/application container. JBoss provides support for this. You have to edit
jboss\bin\run.bat file. Look for the following lines:
rem JPDA options. Uncomment and modify as appropriate to enable remote debugging. rem set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS%
Remove rem from the second line to activate remote debugging. Do change the port if you want to. This port will be used from Eclipse for remote debugging.
Continued …
Related Posts:
Top Of Page | Trackback
If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.
It will look like this: Debugging Remote Java Application - I