Spatie's backtrace package provides a cleaner alternative to PHP's built-in debug_backtrace function. It offers structured Frame objects with properties like file, line number, class, and method, along with features to filter application vs vendor frames, collect arguments and objects, reduce argument complexity, and work with throwable backtraces. The package addresses common issues with the native function such as skewed frame reporting and bitmask options.

Sort: