Wednesday, August 5, 2009

Howto set the output format of debugger

Reading the source of the debugger class (cake/libs/debugger.php, line
~490) , I noticed it is possible to change the output format of the
debug messages. The built-in options are: js (default), html, text,
log and false.

When debugging Ajax stuff, the debugging output get's very annoying:
It usually isn't visible due to a small column where it ends up, even
in firebug you have to dig deep into the structure to get the line
number for example.
So I usually turn debugging off in these actions, using
Configure::write('debug', 0). But when experimenting with ajax, you
still want to know you didn't make any php syntax errors.

Since I use the log-files a lot*, I'd like to send all of debug's
output to the debug.log file.
The debugger has a private property _outputFormat that I'd like to set
to 'log'.

But how and where do I do that?

Thanks,

Bram

ps:
* it's possible to send queries to the logfile as well using
http://cakeexplorer.wordpress.com/2007/10/08/extending-of-dbosource-and-model-with-sql-generator-function/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: