[Logo] JForum - Powering Communities
  [Search] 搜尋   [Recent Topics] 最新主題   [Hottest Topics] 熱門主題   [Top Downloads] 熱門下載   [Groups] 回首頁 
[Register] 會員註冊 /  [Login] 登入 


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

Debugging in Eclipse RSS feed
討論區首頁 » Developer Forum
發表人 內容
danjo

[Avatar]

註冊時間: 2014/2/12
文章: 3
離線
Hi,

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"/>
</wb-module>
</project-modules>

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.

Regards,
Daniel
 
討論區首頁 » Developer Forum
前往:   
行動版
Powered by JForum 2.8.3 © 2023 JForum Team • Maintained by Andowson Chang and Ulf Dittmer