Debugging Configuration

To do run-time debugging of Red Hat Web Application Framework within Eclipse, you will need to add a new Resin launch configuration for running Red Hat Web Application Framework and a new Remote Java Application debug configuration for attaching to Red Hat Web Application Framework.

Red Hat Web Application Framework Execution Setup

To be able to run Red Hat Web Application Framework from Eclipse, select Run->Run. Select Resin and then click on New. Then, enter information for the following tabs:

Main Tab

Select your highest-level project (the one on which no other project depends) for the project. Select your resin.conf

Arguments Tab

In the VM arguments text box, enter the following, all in one line:

-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y, suspend=n,address=8000 -Xms128m -Xmx128m

You may allocate more memory than 128 MB to the server if you wish.

Classpath Tab

Add all the external JARs under $RESIN_HOME/lib to your user classes.

Common Tab

At the bottom of the dialog box, select Display in favorites menu: Run

You are now finished and may close the dialog box.

Red Hat Web Application Framework Debugging Setup

In Eclipse, select Run->Debug. In the dialog box, select Remote Java Application and then click on New. Then enter information for the following tabs:

Connect Tab

Enter a name for your debug configuration, like webapp-debug. Select the same project you selected for running in the previous section. Enter your host name (localhost should be fine). Use 8000 as your connection port. Also, select Allow termination of remote VM.

Source Tab

Add all the external JARs under $RESIN_HOME/lib to your source lookup path.

Common Tab

At the bottom of the dialog box, select Display in favorites menu:Debug

You are now finished and may close the dialog box.