xLink / CybershadeCMS

[Abandoned][Broke] Repo for CybershadeCMS
1 stars 0 forks source link

Log Data to the Debug Panels #30

Closed MantisSTS closed 11 years ago

MantisSTS commented 11 years ago

My idea behind this was that we have a function (standalone or static) to output custom debug data to the Debug Panels

I thought of a function like this: Debug::log('tabName/number', $var);

Then it could "echo dump()" the data into the specified panel.

xLink commented 11 years ago

Yeah this will be added in at some point, very handy to have just to output to a console like place within the debug section

NoelDavies commented 11 years ago

To use it just call the debug class and then use the log method like so:

$objDebug = Core_Classes_coreObj::getDebug();

$x = 100/10;
$objDebug->log( $x, 'Result of 100 divided by 10' );