Macros debugging

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

Macros debugging can be turned on by adding one or more of the following keys into the AppSettings section of your web.config file:

 

CMSDebugMacros - enables the Macros tab in Site Manager -> Administration -> System -> Debug
CMSDebugMacrosLive - enables macros debugging on the live site
CMSDebugAllMacros - enables macros debugging for all operations (including the UI)
CMSDebugMacrosLogLength - maximal length of the macros debug log (number of preserved records)

 

Here is a list of these keys for easy copy&paste into your web.config:

 

<add key="CMSDebugMacros" value="true" />

<add key="CMSDebugMacrosLive" value="true" />

<add key="CMSDebugAllMacros" value="true" />

<add key="CMSDebugMacrosLogLength" value="20" />

 

Macros debugging can also be enabled using the bulk keys.

 

User interface

 

On the Debug -> Macros tab, you can see which macros were recently resolved. For each macro, its exact expression, result (1 - resolved successfully, 0 - not resolved) and context from which it was called is logged. This is useful if you want to analyze how macros were processed.

 

The log can be cleared using the Clear macro log button.

 

devguide_clip1060

 

Page url: http://devnet.kentico.com/docs/5_5r2/devguide/index.html?macros_debugging.htm