Friday, October 1, 2010

JBoss - Remote Debugging withing Eclipse Helios

  • Modify  /usr/local/jboss-epp-5.0.1/jboss-as/bin/run.conf
Add the following:


   # Sample JPDA settings for remote socket debugging
       JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"


    The different debug parameters are:
    ParameterDescription
    -XDebugEnables debugging
    -XnoagentDisables previous debugging agent.
    -XrunjdwpSpecifies the connection mechanism, the transport address, and server andsuspend values.
    For further explanation of the debug settings, refer to the JPDA documentation.

    • Create a debug job in Eclipse


    Note that the same port 8787 is used

    • Start the JBoss server.
    • Start the debug job in Eclipse.
    The remote network icon should be highlighted in red.
    • setup a breakpoint and happy debugging!


    No comments:

    Post a Comment