1

I have a script and I want to enable logging of errors. The first thing I want to log is where the script was called from? I.e. In which part of my code did the error occur and maybe even a list of how it got to the point where it broke? What functions were called etc?

2 Answers 2

2

You can use debug_backtrace to get what you want.

0

See http://www.php.net/debug_backtrace.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.