I am trying to create a tracer log in my PHP application. Turning on the debug mode will start to track the flow of the function.
Below is what I am expecting as my implementation:
function callA(x) { ... } //XYZ.php
function callB() { ... callA(1) ... } //ABC.php
callB(); //main.php
I want to track the flow of the PHP code.
I know that I can use debug_backtrace, but in this case, I need to explicitely call debug_backtrace
in one of the function.
However, what I want is to automatically track the flow of the code.
Is there any way to do it.