Debug Output

8 entries

debug_backtrace Function Returns the call-stack frames as an array (each frame carries function/line/file/class); IGNORE_ARGS drops args to save memory, limit caps depth. debug_print_backtrace Function Prints the current call stack directly (innermost frame first) - essentially debug_backtrace() rendered as #0.. text; supports DEBUG_BACKTRACE_IGNORE_ARGS and a frame limit. debug_zval_dump Function Dumps a variable's internal zval details (type, value, and reference count) — the debug window into PHP's copy-on-write machinery. memory_get_peak_usage Function The script's memory peak (a high-water mark that never decreases and is always >= current usage): pairs with memory_get_usage's current value; handy for spotting memory spikes in batch jobs. memory_get_usage Function Returns the amount of memory currently allocated to the script (actual use by default; true includes unused pages held by the allocator). print_r Function Prints a human-readable representation of a value (arrays/objects as indented trees), without type info. var_dump Function Dumps type, length and value of one or more variables — the most precise debug dump. var_export Function Outputs a valid PHP code representation of a value (re-loadable via eval/include), often for config export.