But if you want to debug it in the browser, you see that the code is minified. And thus stepping through it line by line is not possible.
This post describes how you can do it.
As the code is open source, it is available on Google code. We can do a checkout with following command.
svn checkout http://primefaces.googlecode.com/svn/primefaces/tags/4_0
Now we go to the pom.xml file and make some small changes.
The most important one is the change of the version tag. I have changed it to 4.0-DEBUG (you can find it at the top of the pom.xml file)
PrimeFaces uses a maven plugin to generate the JSF components and configuration files.<modelVersion>4.0.0</modelVersion><groupId>org.primefaces</groupId><artifactId>primefaces</artifactId><packaging>jar</packaging><version>4.0-DEBUG</version><name>primefaces</name><url>http://www.primefaces.org</url>
This plugin is located in the PrimeFaces maven repository which you must include into the pom file. Otherwise the build will fail.
Using this version in your project, by specifying it in a profile so that it doesn’t go into production, you can do debugging in your favourite browser.