You can google how to set up Xdebug on your development environment.
Since I am using Ubuntu, this post was short and easy.
Xdebug docementation is filled with sample codes.
Zend Developer Zone has a series of articles about xdebug.
In order to see beatified code, you must turn on the html_errors in [...]
