devel:debugging
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
devel:debugging [2012-12-27 13:35] – [Debug functions] Klap-in | devel:debugging [2022-10-20 12:47] (current) – Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Debug tools ====== | ====== Debug tools ====== | ||
- | Tools to easy the debugging in DokuWiki | + | DokuWiki |
===Enable debugging=== | ===Enable debugging=== | ||
When config option [[config: | When config option [[config: | ||
* Appending ''? | * Appending ''? | ||
- | * Look up output of '' | + | * (//Up to Hogfather 2020 release//: |
* Receive additional error messages e.g. from some authentication backends | * Receive additional error messages e.g. from some authentication backends | ||
+ | * Appending ''? | ||
+ | * Return some messages if stylesheets are missing | ||
+ | * Receive additional comments in xhtml renderer output | ||
+ | * Get some fallback try-catches in the compiled javascript file via '' | ||
+ | * Get debugging at some other locations and in plugins or templates, see the codesearch for usage [[https:// | ||
+ | ===Enabling logging=== | ||
+ | //Since Igor 2022 release//: | ||
+ | |||
+ | DokuWiki has a logging functionality. Which information is not logged can be set with the [[config: | ||
+ | * Default only //error// and // | ||
+ | * You can also enable //debug// log for more debug output | ||
+ | * Via the admin interface you can use the [[plugin: | ||
===Get page and user info=== | ===Get page and user info=== | ||
Appending ''? | Appending ''? | ||
+ | |||
+ | ===Debugging TaskRunner === | ||
+ | |||
+ | See the [[: | ||
=====Debug functions===== | =====Debug functions===== | ||
- | ===dbg($msg) | + | * **'' |
- | Insert a code block in the wikipage filled by $msg as plain text. | + | |
- | Adding an extra argument to '' | + | * **'' |
- | ===dbglog($msg)=== | + | * **'' |
- | Writes | + | |
- | Use '' | + | * **'' |
- | ===dbg_backtrace()=== | + | * **'' |
- | Print a reversed, prettyprinted backtrace | + | |
- | ===debug_guard($data)=== | + | ===== Sentry Plugin ===== |
- | When you write your own debug functionality, | + | |
+ | The [[plugin: | ||
Line 37: | Line 50: | ||
* Configuration option [[config: | * Configuration option [[config: | ||
- | * [[xref> | + | * Configuration option |
* [[devel: | * [[devel: | ||
+ | * I got a [[faq: | ||
+ |
devel/debugging.1356611724.txt.gz · Last modified: 2012-12-27 13:35 by Klap-in