Debugging"

From Documentation
Line 17: Line 17:
  
 
= Turn Off Compression and Cache =
 
= Turn Off Compression and Cache =
 +
 +
By default, the JavaScript files (ZK packages) will be compressed and cached, which is hard to step in and debug. You could turn off the compression and the cache of JavaScript files by specifying the following in <code>WEB-INF/zk.xml</code>:
 +
 +
<source lang="xml">
 +
<client-config>
 +
    <debug-js>true</debug-js>
 +
</client-config>
 +
<library-property>
 +
    <name>org.zkoss.web.classWebResource.cache</name>
 +
    <value>false</value>
 +
</library-property>
 +
</source>
 +
 
=Version History=
 
=Version History=
 
{{LastUpdated}}
 
{{LastUpdated}}

Revision as of 03:03, 14 January 2011


Debugger

First, it is suggested to get a debugger for the browser you're working with.

Browser Debugger
Firefox Firebug.

It is not built-in, so you have to download and install it separately.

Internet Explorer 9 Developer Tools

It is built-in and you could start it by pressing F12.

Turn Off Compression and Cache

By default, the JavaScript files (ZK packages) will be compressed and cached, which is hard to step in and debug. You could turn off the compression and the cache of JavaScript files by specifying the following in WEB-INF/zk.xml:

<client-config>
    <debug-js>true</debug-js>
</client-config>
<library-property>
    <name>org.zkoss.web.classWebResource.cache</name>
    <value>false</value>
</library-property>

Version History

Last Update : 2011/01/14


Version Date Content
     



Last Update : 2011/01/14

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.