Proposal for "Debug"

» Metadata » Status
  • Category: PHP
  • Proposer: Loïc Vernet 
  • License: PHP License 3.01
» Description

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 usefull during the development phase of a project or in production with a secure key/ip)

== Features


  1. General process time SQL/PHP
  2. Check performance of parts of code
  3. Show sql of executed queries (with highlighting and execution time)
  4. Dump of all types of variable in a graphical way
  5. Functionnal/trace debug (with line, file, class, function)
  6. Show globals vars ($GLOBALS, $_POST, $_GET, $_COOKIE ...)
  7. 2 renderers, as a HTML talbe or as a floating div
  8. Allow to watch variables (+ watch on type of var)
  9. Show php version & loaded extensions
  10. Allow to show source code of all parsed file (with TEXT_Highlighter)
  11. Static methods to debug/trace out of the debug renderer display
  12. Debug infos are classified by type (14 types available)
  13. Can replace the PHP error handler to show messages inside the debug renderer
» Dependencies » Links
  • TEXT_HighLighter (optional)
» Timeline » Changelog
  • First Draft: 2005-06-16
  • Proposal: 2007-04-05
  • Call for Votes: 2007-04-16
  • Loïc Vernet
    [2007-04-12 21:34 UTC]

    - __toString methods updated with an uppercase S
    - PHP_DebugLine class has now its own file (as all classes now)
    - reviewed visiblity modifiers for all methods and attributes
    - all global constants switched to class constants
    - corrected class naming and directory structure for renderers
    - corrected @since doctags
    - corrected globally file naming
    - package, links and demo updated