Debugger

A debugger is an extension or an external program that is used to help when searching for bugs or issues in source code. They provide extra visibility on the internal working of the application, including variable content,

As there are many tactics to search for a bug, there are many tools available.

The PHP ecosystem of debuggers includes:

  • PHP native functions such as var_dump(), print_r(), debug_backtrace()

  • PHP 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.

Debuggers are integrated into IDE, or work as standalone applications.

<?php

    // simple debug system with native PHP print_r
    print_r($_GET);

?>

Documentation

See also Xdebug, Interactive PHP Debugger, Kint, Whoops, Krumo, Quo and buggregator.

Related : Debug, Integrated Environment of Development (IDE), var_dump(), print_r(), Backtrace, PHP Editor, PHP Profiler, Tool