Debugging XWiki using Eclipse WTP
Version 104.1 by Thomas Mortagne on 2018/02/06 15:24
The goal of this tutorial is to describe a way to setup Eclipse to be able to:
- edit web files (javascript, images, ...) in and automatically publish them in a running instance of XWiki without restarting it
- edit and debug java without restarting the XWiki instance
All these tricks helps to improve the programming speed a lot.
Prerequisites
If it's not already done you should take a look at Working with Eclipse for the base setup of Eclipse for XWiki.
Setting Eclipse for debug
To be able to launch XWiki into Eclipse and debug it we will create a WTP project which will be a mirror of the product web we want to work on. Here it's XWiki Enterprise Manager.
TODO
- add more explanation on how "Run as server" works behind the scene
- https://code.google.com/p/m2eclipse-wtp-ext/ seems promising