About debugging in PHP

PHP is shipped with a basic command line interactive debugger, phpdbg.

Most IDEs have support for » Xdebug, a free debug tool, which allows for single step debugging your PHP applications.