lgyers / firephp

Automatically exported from code.google.com/p/firephp
0 stars 0 forks source link

Display file and line information for each log message #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Provide an option to include filename and line information for each log
message.

Original issue reported on code.google.com by christop...@gmail.com on 1 Oct 2008 at 8:47

GoogleCodeExporter commented 9 years ago
maybe:

/**
 * FirePHP
 *
 * @return bool
 */
function fb() {

    $instance = FirePHP::getInstance(true);

    $debug = debug_backtrace();
    $info = "source: {$debug[0]['file']}, line: {$debug[0]['line']}";
    $instance->group($info);

    $args = func_get_args();
    $ret = call_user_func_array(array($instance,'fb'),$args);
    $instance->groupEnd();

    return $ret;
}   

Original comment by sszym...@gmail.com on 1 Oct 2008 at 3:01

GoogleCodeExporter commented 9 years ago
Not sure I like that as a general solution since it creates a lot of extra 
entries in
the console. It will work great if you need to track down a logging statement 
in a
specific case.

Original comment by christop...@gmail.com on 1 Oct 2008 at 6:22

GoogleCodeExporter commented 9 years ago
File and line info will be available by default in the next BETA release.

Original comment by christ...@christophdorn.com on 16 Oct 2008 at 3:05

GoogleCodeExporter commented 9 years ago

Original comment by christ...@christophdorn.com on 22 Oct 2008 at 5:12