PHP DEBUG functions Use below function to check Generates a backtrace. It will return from where this function is calling from. Source code var_dump(debug_backtrace());