PHP is shipped with a basic command line interractive debugguer, phpdbg .
Most IDEs have support for » Xdebug , a free debug tool, which allows for single step debugguing your PHP applications.