| Red Hat Docs > Manuals > Red Hat Web Application Framework > |
| Red Hat Web Application Framework Developer Guide | ||
|---|---|---|
| Prev | Chapter 19. Setting Up Eclipse and Red Hat Web Application Framework | Next |
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.
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:
Select your highest-level project (the one on which no other project depends) for the project. Select your resin.conf
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.
Add all the external JARs under $RESIN_HOME/lib to your user classes.
At the bottom of the dialog box, select Display in favorites menu: Run
You are now finished and may close the dialog box.
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:
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.
Add all the external JARs under $RESIN_HOME/lib to your source lookup path.
At the bottom of the dialog box, select Display in favorites menu:Debug
You are now finished and may close the dialog box.