xrdebug / php

Official PHP client library for xrDebug
https://xrdebug.com
Apache License 2.0
222 stars 6 forks source link

Include BackTrace #86

Closed eznix86 closed 3 months ago

eznix86 commented 3 months ago

Sometimes you want to have some kind of debug_backtrace to know the follow or the origin of the call.

rodber commented 3 months ago

It already does that. https://github.com/xrdebug/php#xr

Pass bitwise flags to trigger special behavior.

f: XR_BACKTRACE to include debug backtrace.

xr($var, f: XR_BACKTRACE);