I got back into WordPress Themes and Plugins programming and found myself struggled debugging my code. There are several options to debug PHP code but each has its drawbacks for me:
echosomewhere in the HTML code (it could break JS stuff, too distracting [you could style them but you still need to mess with the HTML])
- using a IDE (setup, using a IDE)
- other solutions (several things must be installed, too distracting)
This Plugin is a simple and slim PHP to Console bridge to deliver debugging messages. It supports Strings, Arrays and Objects.
The setup is minimal: since we are in the WordPress Framework it’s as simple as activating a Plugin.
Most browsers support the
console.log() function (Firebug in Firefox, Developer Tools in Chrome, Firebug Lite in IE, Scripts overwriting the behavior, etc.) so you should easily find the best solution for you.