bdk / backtrace
Backtrace utils
v2.2.2
2024-07-05 18:54 UTC
Requires
- php: >=5.4.0
Requires (Dev)
- bdk/devutil: dev-master
- phpunit/phpunit: ^4.0 | ^5.0 | ^6.0 | ^7.0 | ^8.0 | ^9.0
README
PHP Backtrace utils
is this really necessary?
- There are two functions to get a backtrace in PHP.
debug_backtrace
andxdebug_get_function_stack
... To get the trace for a fatal error.xdebug_get_function_stack
must be used. This utility uses xdebug when necessary and normalizes the results. - Ability to define classes/namespaces to skip over... Useful for when your framework wants to display a trace to the user... without all the internals that got to the point of generating the trace
- Utility for getting the surrounding file lines for each frame.
getCallerInfo()
utility method to get the calling file/line/function