Export Seite als DOC | Aktuelle Änderungen - Suchen:

Bearbeiten

Debug Variables

%apply=item id=Abort Function?%$AbortFunction
A custom function name replacing the built-in Abort() function.
%apply=item id=Enable Diag?%$EnableDiag
%apply=item id=Enable Markup Diag?%$EnableMarkupDiag
By default, the "ruleset" action will display all markup rules, and the old-format patterns requiring update for PHP 7 will list with their files and line numbers. Setting $EnableMarkupDiag to 1 will list files and line numbers of all patterns. Note, this needs to be set early in config.php before a Markup() call or before including a recipe.
%apply=item id=Enable IMS Caching?%$EnableIMSCaching
A variable which, when set equal to 1, recognizes the "If-Modified-Since" header coming from browsers and allows browsers to use locally cached pages. Disabled by default to help the administrator customize its page without needing permanent reloading.
%apply=item id=Enable Stop Watch?%$EnableStopWatch
This activates an internal stopwatch that shows how long it takes to render a page. (If you have a wiki that composes a HTML page from multiple pages, such as a normal layout with a sidebar, you'll get separate timings for each subpage and for the total page.)
The timings can be displayed by adding <!--function:StopWatchHTML 1--> in the wiki template.
Valid values are:
        $EnableStopWatch = 0; # No timings (the default). No HTML will be generated.
        $EnableStopWatch = 1; # Wall-clock timings only.
        $EnableStopWatch = 2; # Wall-clock and CPU usage timings. Won't work on Windows.
See Stopwatch for more details.

See also:


Is it possible for someone with admin privileges to always have access to debugging tools, without letting everyone else access them?

You can easily & automatically allow debugging for anyone with admin privileges (meanwhile leaving it off for everyone else) by including this line in config.php - just be sure that 1) $EnableDiag is either null or set to 0, and 2) to include it near the end of config.php, AFTER declaring your passwords, and after any Auth User or other privilege settings:

if (Cond Auth?($pagename, 'admin')) $EnableDiag = 1; # allows admin to always call phpinfo, etc


This page may have a more recent version on pmwiki.org: PmWiki:DebugVariables, and a talk page: PmWiki:DebugVariables-Talk.

Bearbeiten - Versionen - Druckansicht - Aktuelle Änderungen - Suchen
Zuletzt geändert am 19.08.2022 20:19 Uhr | Seitenaufrufe: seit 03.10.2013