CodeIgniter is an awesome PHP Web Framework with a light footprint and just easy to use.  Despite that its easy to use, we still run into problems and errors when we get deep in the trenches of testing our applications.

PhpConsole is a developer tool for Google Chrome by Barbushin Sergey which, when installed, will output PHP errors and debugging in the Chrome console, and/or by way of notification popups.  This is a pretty handy tool and its uses can certainly be applied to any PHP application your writing for the browser.  However in this instance I’m going to show you how to throw it up into CodeIgniter quite easily.

First goto https://chrome.google.com/webstore/detail/nfhmhhlpfleoednkpnnnkolmclajemef in Chrome and install PhpConsole. In the description on that page you’ll see the google code repository link for PhpConsole (and Lagger as well), click the code repo link and then download the .zip file in the downloads section.

Extract the .zip file and place PhpConsole into the root of your CodeIgniter application, right next to index.php

Next open that index.php file and at the very top add the following lines:

require_once('PhpConsole.php');
PhpConsole::start();

And there you have it, test some errors in your codeigniter application and they will show up in Chrome to help you get rid of those frustrating ones :)

Hope this helps!

, , , ,