FirePHP debugging module released

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm
Location: Denmark

FirePHP debugging module released

Post by Silmarillion »

Hi Developers

Just wanted to make a notice that I released a very early version of a module integrating www.firephp.org debugging into cmsms. It allows you to easily write debugging messages to the firebug-console, which especially should prove helpful for ajax-development, but also other areas. I'm looking forward to using it myself, but please be aware that it is very early. For instance the trace method of debugging seems to produce an unwanted recursion under some circumstances.
Please feel free to suggest improvements.

Regards
Morten/Silmarillion
kendo451

Re: FirePHP debugging module released

Post by kendo451 »

Thanks for that module, Silmaril.

I'm trying to use it with a UDT so I can use it for debugging in templates.  Here's the UDT I wrote, but I'm not sure if it works yet.

Code: Select all

// Params: message='string', msgtype='message','info','warning','error','trace', variables=variable array

global $gCms;
$firephpmodule = $gCms->modules['firePHPDebug']['object'];
if ($firephpmodule) {
    //Module found
    $firephpmodule->ConsoleMessage('log UDT',$params['message'], $params['msgtype'], $params['variables']);
} //else Module not found

Post Reply

Return to “Developers Discussion”