Located in file /wire/core/Debug.php

Click any linked item for full usage details and examples. Hookable methods are indicated with the icon.

Show class?             Show args?        

Common

NameReturnSummary 
backtrace()
array stringReturn a backtrace array that is simpler and more PW-specific relative to PHP’s debug_backtrace 
getAll()
arrayGet all active timers in array with timer name (key) and start time (value) 
getSavedTimer(string $key)
stringReturn the time recorded in the saved timer $key 
getSavedTimers()
arrayReturn all saved timers in associative array indexed by key 
removeAll()
(nothing)Remove all active timers 
removeSavedTimer(string $key)
(nothing)Remove a previously saved timer 
removeSavedTimers()
(nothing)Remove all saved timers 
removeTimer(string $key)
(nothing)Remove a timer completely 
resetTimer(string $key)
string intReset a timer so that it starts timing again from right now 
saveTimer(string $key)
bool stringSave the current time of the given timer which can be later retrieved with getSavedTimer($key) 
startTimer()
stringStart a new timer 
stopTimer()
stringGet elapsed time for given timer and stop 
timer()
string intMeasure time between two events 
timerSetting(string $key)
mixedGet or set timer setting 
toStr($value)
stringDump any variable to a debug string 

API reference based on ProcessWire core version 3.0.244

“ProcessWire is like a breath of fresh air. So powerful yet simple to build with and customise, and web editors love it too.” —Margaret Chatwin, Web developer