Debugger¶
A debugger is an extension or an external program that is used to help when searching for bugs in source code.
As there are many tactics to search for a bug, there are many tools available.
This includes
PHP native functions such as
var_dump(),print_r(),debug_backtrace()…external components like
kint,whoops,krumo,Debuggers: Interactive PHP Debugger, xdebug, PHP debugger, etc.
Debugging include executing the code step by step, displaying and modifying the content of variables.
<?php
// simple debug system with native PHP print_r
print_r($_GET);
?>
See also Xdebug, Interactive PHP Debugger, Kint, Whoops, Krumo and Quo.
Related : Debug, Integrated Environment of Development (IDE), var_dump(), print_r(), Backtrace, PHP Editor, PHP Profiler, Tool