REQUEST: start/end variable logging

15 views
Skip to first unread message

Patrick Hogan

unread,
Mar 29, 2012, 12:18:21 AM3/29/12
to firephp-dev
The trace function is a handy tool, however, it gives quite a bit of
information. It would be nice to have a simpler start/end variable
trace that logs each variable one at a time

For example:

$start = array_keys(get_defined_vars());

$end = array_keys(get_defined_vars());

$log_variables = array_diff($start, $end)

foreach($log_variables as $log_variable)
$console->log($log_variable);

This needs work, I understand. But the point is instead of adding
10-20 separate log statements in a section of code, you could just
have one start/end. This is different from trace(); because in many
PHP frameworks that globally load numerous functions, the trace output
can become muddy when quickly looking for a certain variable value.

Christoph Dorn

unread,
Mar 29, 2012, 11:15:18 AM3/29/12
to firep...@googlegroups.com
I like. New feature filed: https://github.com/firephp/firephp/issues/7

Christoph

Patrick Hogan
28 March, 2012 9:18 PM
Reply all
Reply to author
Forward
0 new messages