The debug-js Element"

From Documentation
m
 
(3 intermediate revisions by 3 users not shown)
Line 4: Line 4:
 
  <debug-js>true|'''false'''</debug-js>
 
  <debug-js>true|'''false'''</debug-js>
  
  [Default: <tt>false</tt>]
+
  [Default: <code>false</code>]
  
It specifies whether to debug JavaScript files. By default, it is false and the compressed version of JavaScript files will be loaded. They are hard to read and debug, though the footprint is much smaller.
+
It specifies whether to load uncompressed JavaScript files. By default, it is <code>false</code> and ZK loads the compressed version of JavaScript files (*.wpd). They are hard to read and debug, though the footprint is much smaller.
  
To debug JavaScript files, you can specify it to true. Then, the original uncompressed JavaScript files will be loaded instead.
+
To debug JavaScript files, you can specify it to <code>true</code>. Then, the original uncompressed JavaScript files with comments will be loaded instead. When you report a javascript error stack trace, it's better to enable this to make calling hierarchy readable.
 +
 
 +
[[File:ZK_Configuration_Reference-debug-js.png | center]]
  
 
{{ZKConfigurationReferencePageFooter}}
 
{{ZKConfigurationReferencePageFooter}}

Latest revision as of 03:10, 22 May 2023


Syntax:

<debug-js>true|false</debug-js>
[Default: false]

It specifies whether to load uncompressed JavaScript files. By default, it is false and ZK loads the compressed version of JavaScript files (*.wpd). They are hard to read and debug, though the footprint is much smaller.

To debug JavaScript files, you can specify it to true. Then, the original uncompressed JavaScript files with comments will be loaded instead. When you report a javascript error stack trace, it's better to enable this to make calling hierarchy readable.

ZK Configuration Reference-debug-js.png



Last Update : 2023/05/22

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