Debugging"
From Documentation
m (→Debugger) |
|||
Line 17: | Line 17: | ||
This is a recommend debugging tool. It is not built-in, so you have to download and install it separately. | This is a recommend debugging tool. It is not built-in, so you have to download and install it separately. | ||
|- | |- | ||
− | | Internet Explorer 9 | + | | Internet Explorer 6 |
+ | | Microsoft script debugger , fiddler2(network inspection) | ||
+ | |- | ||
+ | | Internet Explorer 7 | ||
+ | | Microsoft script debugger , fiddler2(network inspection) ,there's another choice is to use Develope Tool in IE8 with IE7 compatible mode | ||
+ | |- | ||
+ | | Internet Explorer 8 , 9 | ||
| Developer Tools | | Developer Tools | ||
It is built-in and you could start it by pressing F12. | It is built-in and you could start it by pressing F12. |
Revision as of 19:13, 22 September 2011
Here we discuss how to debug the client-side code. For server side debugging, please consult the IDE manual you use.
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. |
Firefox | ZKJet.
This is a recommend debugging tool. It is not built-in, so you have to download and install it separately. |
Internet Explorer 6 | Microsoft script debugger , fiddler2(network inspection) |
Internet Explorer 7 | Microsoft script debugger , fiddler2(network inspection) ,there's another choice is to use Develope Tool in IE8 with IE7 compatible mode |
Internet Explorer 8 , 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
Version | Date | Content |
---|---|---|