Tutorials or Advice on Interpreting debug_backtrace

Learning to program requires learning to fix bugs. Using var_export or var_dump is one part, but now I want to learn more about debug_backtrace. In particular, how are the results interpreted?

http://php.net/manual/en/function.debug-backtrace.php

This one went over my head:
http://www.hackingwithphp.com/19/8/8/backtracing-your-code

See this link please. It uses a simplified example that it is much easier to follow.

http://www.w3schools.com/php/func_error_debug_backtrace.asp
 
  • Like
Reactions: LPH
As stack trace does nothing other than inform you how your code was reached (function calls and such). It's helpful if you are trying to determine why something occurred and you can trace your code and the values that were used at that specific point. XenForo includes stack traces when logging errors for that reason.
 
Top Bottom