geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Geronimo Wiki] Update of "EclipseDeployment" by Stefan Schmidt
Date Sat, 02 Jul 2005 06:42:39 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Geronimo Wiki" for change notification.

The following page has been changed by Stefan Schmidt:
http://wiki.apache.org/geronimo/EclipseDeployment

------------------------------------------------------------------------------
  
  
  
+ ----
  
- (More to come...to be done on a plane tomorrow :)
+ == Start Geronimo ==
  
+ In a next step you need to start Geronimo for debugging in Eclipse:
+ 
+ {{{
+ java -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
-jar %GERONIMO_HOME%/bin/server.jar %1
+ }}}
+ 
+ In Eclipse set the breakpoint in the class you are debugging and then select Run -> Debug
right click on Remote Java Application and select 'New'. Select the module which you would
like to debug. Change the port number from 8000 to 5005.
+ 
+ http://www.stsmedia.net/geronimo/eclipse-debug/1.png
+ 
+ Select the 'Source' tab and Add -> Java Project. Select all previously imported Geronimo
Projects. This way Eclipse can find the source codes of all classes you come across during
debugging.
+ 
+ http://www.stsmedia.net/geronimo/eclipse-debug/2.png
+ 
+ Then, press 'Debug' and change to the Debugging perspective within Eclipse. On the upper-left
side you should be able to see the threads and stack traces, in the upper-right side you can
see all class variables, and on the lower-left side you can see the source code.
+ 
+ http://www.stsmedia.net/geronimo/eclipse-debug/3.png
+ 
+ Changes you make during the debug session will be reflected in that session. However, if
you cycle the server and restart it the changes will be lost and your source tree will be
out of sync with the running server.
+ 
+ How to solve this issue will be posted here soon :)
+ 

Mime
View raw message