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

API reference based on ProcessWire core version 3.0.163

Twitter updates

  • Quick weekly update covering this week's commits for the upcoming 3.0.167 ProcessWire core version— More
    18 September 2020
  • This week ProcessWire version 3.0.166 is released on the dev branch. In this post we’ll cover all that’s new relative to the previous version, 3.0.165. Plus we’ll check out the latest new versions of ProCache and FormBuilder— More
    11 September 2020
  • Weekly update – 28 August 2020 – New secure files option defined per-template: More
    28 August 2020

Newest forum posts

Latest news

  • ProcessWire Weekly #331
    In the 331st issue of ProcessWire Weekly we're going to check out the latest core and Pro module updates (ProcessWire 3.0.166, ProCache 4.0.1, and Form Builder v44), introduce the Wireframe API module, and more. Read on!
    Weekly.pw / 12 September 2020
  • ProcessWire 3.0.166 core updates and more
    This week ProcessWire version 3.0.166 is released on the dev branch. In this post we’ll cover all that’s new relative to the previous version, 3.0.165. Plus we’ll check out the latest new versions of ProCache and FormBuilder.
    Blog / 11 September 2020
  • Subscribe to weekly ProcessWire news

“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