The following global functions are available with the Debug package. Learn more information about these functions in the dumping variables chapter.
If error reporting is off, these functions will not output anything.
Output the value of a variable, or multiple variables.
debug($foo, $bar);Output the value of a variable, or multiple variables, and include type information.
dump($foo, $bar);Output the back trace of the script, or the stack trace of an exception.
backtrace();
backtrace($e);Output the stack trace, file path, line number, and metadata of an exception.
inspect($e);Output the variable into a PHP/Hack usable format.
export($baz);