Dai
Dai

Reputation: 1

PHP - I want to know how to get function trace

Is there any way to know all previous functions were called before a point in my code? For example: I set a point in abc.php in my project, and I want to get all functions that were called before that point was reached. debug_backtrace() does not help here. Thanks so much :)

Upvotes: 0

Views: 1552

Answers (3)

Nick Pavluk
Nick Pavluk

Reputation: 379

Use xdebug for trace and webgrind for vizualization this one.

Upvotes: 0

troelskn
troelskn

Reputation: 117615

xdebug can generate function traces for you. See: http://xdebug.org/docs/execution_trace

Upvotes: 2

k102
k102

Reputation: 8089

use xdebug it will show trace and much more useful info

Upvotes: 1

Related Questions