debug_backtrace()
提供文件和行号,但不提供“列”或“行上的字符位置”。为什么会这样?
这似乎是PHP自己的错误处理程序所要解决的问题。
无论如何,我是否可以将其用于使用debug_backtrace()
的自己的错误处理程序?
Name Type Description function string The current function name. See also __FUNCTION__. line integer The current line number. See also __LINE__. file string The current file name. See also __FILE__. class string The current class name. See also __CLASS__ object object The current object. type string The current call type. If a method call, "->" is returned. If a static method call, "::" is returned. If a function call, nothing is returned. args array If inside a function, this lists the functions arguments. If inside an included file, this lists the included file name(s).