v2.2 2023-09-29 00:48 UTC

This package is auto-updated.

Last update: 2023-11-07 00:53:06 UTC


PHP Backtrace utils

is this really necessary?

  • There are two functions to get a backtrace in PHP. debug_backtrace and xdebug_get_function_stack... To get the trace for a fatal errpr. 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

Tests / Quality

No Dependencies Supported PHP versions Build Status Maintainability Coverage