Skip to content

Log new defined variables for section #7

Description

@cadorn

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.

Reported: http://groups.google.com/group/firephp-dev/browse_thread/thread/df5f91ac8afd113c

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions