digitalnature / php-ref

A better alternative to print_r / var_dump
347 stars 59 forks source link

Added backtrace information #14

Closed Pfarrer closed 9 years ago

Pfarrer commented 11 years ago

In each Debug header... is the filename and linenumber of the calling file shown. Example:

> array($value, $boundary, $a, $b) - /home/.../lib/gradelib.php(783)

digitalnature commented 10 years ago

I don't see how is the calling file and line number important. Usually when you do a var_dump of a variable, you already have the file open at the position where you make the call...

Pfarrer commented 10 years ago

I use it a lot to find the place where I called the debug function. Usually I work in bigger software like Moodle and, therefore, I place multiple debugs at the same time in different (huge) files. Are there any disadvantages of having backtrace information?