Sunday, April 21, 2013

WordPress Buggy Plugin

WordPress Buggy Plugin - CodeCanyon Item for Sale WordPress Buggy Plugin - CodeCanyon Item for Sale console // debugging // developing // javascript // php // plugin // tool // wordpress //
Created 1 May 11
Last Update 1 May 11
Software Version WordPress 3.1, WordPress 3.0, WordPress 2.9, WordPress 2.8, WordPress 2.7, WordPress 2.6, WordPress 2.5
Files Included JavaScript JS, JavaScript JSON, HTML, CSS, PHP

The Problem

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:

  • using print or echo somewhere 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)

The Solution

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.

Distraction will be reduced, even more if you use the Console for Javascript debugging anyway.

Related produck

Plugin Detection for WordPress Themes - CodeCanyon Item for Sale Photostack jQuery Plugin - CodeCanyon Item for Sale

More items by mustardamus

No comments:

Post a Comment