PHP_Debug : A PHP open source debug library

» Welcome to the PHP_Debug Project !

What is PHP_Debug ?

Look at the top-right of the page ! (click here)

     The basic purpose of PHP_Debug is to provide assistance in debugging PHP code, by "debug" i don't mean "step by step debug" but program trace, variables display, process time, included files, queries executed, watch variables... These informations are gathered through the script execution and therefore are displayed at the end of the script (in a nice floating div or a html table) so that it can be read and used at any moment. (especially useful during the development phase of a project or in production with a secure key/ip)


  • General process time SQL/PHP
  • Check performance of parts of code
  • Show sql of executed queries (with highlighting and execution time)
  • Dump of all types of variable in a graphical way
  • Functionnal/trace debug (with line, file, class, function)
  • Show globals vars ($GLOBALS, $_POST, $_GET, $_COOKIE ...)
  • 2 renderers, as a HTML talbe or as a floating div
  • Allow to watch variables (+ watch on type of var)
  • Show php version & loaded extensions
  • Allow to show source code of all parsed file (with TEXT_Highlighter)
  • Static methods to debug/trace out of the debug renderer display
  • Debug infos are classified by type (14 types available)
  • Can replace the PHP error handler to show messages inside the debug renderer

How to start ?

I recommand you to check the full example, this is the best way to underdand how PHP_Debug works. In fact in this file, there is complete exemple of all the available features included in PHP_Debug.

07-07-2020 04:24:38
» Design taken and adaptated from PHP::Pear website
» Show source of this file
» Click here to register the newsletter
Last updated: 21 June 2011 by COil