In PHP, get_included_files() returns an array with the names of included files.
In a similar fashion, is there any way to get an array with the names of called functions with parameters?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I was trying to achieve what you want and finally came up with an reasonable solution.
Make a class named
Debugand include that above every file you want to debug in. Build yourself a function that prints nicely the information stored in$calls.Call this function everytime you declare a function first line in the functionbody:
Debug::log($message(optional) )