Can't debug javascript in Liferay?

Posted on by Charalampos Chrysikopoulos

Per default liferay minifies all javascript and css files of your portlets. As a result you have better speed, but while being in the developing cycle, you can scarify some speed for information. And debugging the javascript with a tool like firebug is in most cases very helpful. But for that you need the code to be in separate rows, not all in one.

In Liferay 5.x.x you can do this by putting an attribute in the URL:

js_fast_load=0

In liferay 6.x.x you can do this by putting a property in the portal-ext.properties file:

#
# The minifier filter is used to minify CSS and JavaScript.
#
com.liferay.portal.servlet.filters.minifier.MinifierFilter=false

This entry was posted in Liferay and tagged debug, javascript, Liferay by Charalampos Chrysikopoulos