Welcome Guest, Not a member yet? Register   Sign In
New library -> Myfirebug
#5

[eluser]SlasherX[/eluser]
[quote author="ScottR" date="1186409957"]How do you use this? Does it extend the CI log class and just write the log messages out to the console for firebug to display?

Good idea, just not sure where to put this file[/quote]

No it does not extend CI_log. CI_log does it job great, it logs messages to a file, so I see no reason to change or extend it.

To use this library you first have to have firebug installed and be running a firefox browser, you can download firebug at getfirebug.com and can download firefox at mozilla.com.

Myfirebug.php is placed in the /system/application/libraries folder and loaded using
Code:
$this->load->library("Myfirebug");
in your controller file.

To display a message in firebug use:
Code:
$this->myfirebug->debug($message);
where $message is the debug information you want to look at.

It is not created to replace any existing error reporting functions that CI has, it was just created to give a user friendly alternative.

I like not having to reload a log file to display debug messages, when I am in the middle of programming having to move away from the code or the display can be distracting.

Consider this an alternative to using echo to display variables or <!--message--> and then viewing source.


Messages In This Thread
New library -> Myfirebug - by El Forum - 08-03-2007, 05:59 PM
New library -> Myfirebug - by El Forum - 08-03-2007, 06:24 PM
New library -> Myfirebug - by El Forum - 08-03-2007, 06:29 PM
New library -> Myfirebug - by El Forum - 08-06-2007, 03:19 AM
New library -> Myfirebug - by El Forum - 08-06-2007, 09:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB