This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

PhpToolCase Debugger & Logger


A wordpress plugin for the ptcdebug class to speed up wordpress plugins development.

Main Features:

  • Shows super globals vars ($GLOBALS, $_POST, $_GET, $_COOKIE …)
  • Shows php version and loaded extensions
  • Replaces php built in error handler
  • Catches exceptions
  • Logs sql queries
  • Monitors code and sql queries execution time
  • Inspects variables for changes
  • Dumps of all types of variable
  • File inspector with code highlighter to view source code
  • Sends messages to js console(Chrome only) for ajax scripts
  • Code coverage analysis to check which lines of script where executed
  • Function calls tracing
  • Can search files for a string recursively

When WP_DEBUG is enabled the default php error handler can be replaced..

When SAVEQUERIES is enabled the mysql queries from the wordpress core will be shown in the sql panel.

Live Demo & API DOCS:

Wiki Pages:

GitHub Repository:

WordPress Repository:


Download a .zip file and place the exctracted folder in the plugins directory of your wordpress installation.

To activate the debugger & logger panel use ?debug=true in the url.

Visit for user guides and api documentation.

Contributors & Developers

“PhpToolCase Debugger & Logger” is open source software. The following people have contributed to this plugin.



Upgraded the plugin to the new library version Added event listeners for the admin options form.


Added namespaces to all classes but the main debugger class to be able to use the functions in the globlal scope, and prevent other plugins from using the library in the global scope, in case they use other versions, Updated the library to the newer version


First realease for the plugin