Using xdebug is a good start. Download the package and follow the instructions in the file INSTALL. This is pretty easy. Once this is done, add the following lines to your file php.ini:
zend_extension="/Path/to/your/module/xdebug.so"
xdebug.file_link_format="txmt://open?url=file://%f&line=%1"
xdebug.var_display_max_depth = 20
Remember to restart Apache after this.
Most debugging can be done with a simple one die(var_dump($some_variable)). It's not very complicated, but with xdebug installed, the vardump output looks pretty good in the browser. In most cases, this is enough.
, xdebug_break(); php.ini:
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_autostart=1
, Apache.
, , MacGDBp ( Eclipse + PDT, ), . , .
!