This website uses cookies to ensure you get the best experience. Learn More.
Remote Debugging Liferay in NetBeans 8
Currently, Liferay has excellent Eclipse support with the Liferay IDE and Liferay Developer Studio. However, as of this writing, Liferay has no official NetBeans plugins or IDE. So what are you to do if you want to develop on Liferay in NetBeans? Well you can run Liferay from the terminal of course, but what if you want to debug your code or Liferay's code or both? Remote debugging is the solution. Here's how you can do it with NetBeans:
bin/
$ cd $LIFERAY_HOME/tomcat-${version}/bin
$ ./catalina.sh jpda start
After that, the NetBeans debugger should connect to the running Tomcat and allow you to debug Liferay.
Thanks to Alex Wallace for his forum post explaining how to do this.