Patrick Hogan
unread,Mar 29, 2012, 12:18:21 AM3/29/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.