Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
Debug PHP with Firebug and FirePHP
Feb 09, 2010 @ 15:13:40

bOn the SitePoint PHP blog today there's a new post showing you how to debug applications with FirePHP (an extension of the popular Fireug extension for Firefox).

By combining this extension, which sits on top of Firebug, with a server-side library, your PHP scripts will be able to send debugging information to the browser, handily encoded in the HTTP response headers. Once you’re set up, you can log warnings and errors in your PHP scripts to the Firebug console, just as if you were developing JavaScript.

Once you've installed the extension and grabbed the FirePHP library, you can follow along with their example showing the push of a simple message - in this case array values - out to your browser and into the Fireug panel.

tagged: debug firebug firephp tutorial

Link:


Trending Topics: