[Logo] JForum - Powering Communities
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 

JForum 2.8.2 is out with various fixes and improvements. Read all about it here

Debugging in Eclipse RSS feed
Forum Index » Developer Forum
Author Message


Joined: 2014/2/12
Messages: 3

Just thought I'd make a note of a useful tip, to debug JForum in Eclipse... it took me an hour or two to figure out:

1. Install Web Tools Project
2. In the Project/Package Explorer, go to the little down arrow and change the view filters to show up the hidden .* resources
3. Go into your .settings folder
4. Change the one line in org.eclipse.wst.common.component to:
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">

<wb-module deploy-name="jforum">
<wb-resource deploy-path="/" source-path="/target/jforum"/>
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<property name="java-output-path" value="/jforum/build/classes"/>
<property name="context-root" value="jforum"/>
<property name="component.exclusion.patterns" value="WEB-INF/web.xml"/>

5. You can then add your module to your Server in the Servers view.
6. Click 'Debug' on the server.

Now you can put breakpoints in. Much better workflow, in case you haven't got this working already.

Forum Index » Developer Forum
Go to:   
Mobile view
Powered by JForum 2.8.2 © 2022 JForum Team • Maintained by Andowson Chang and Ulf Dittmer