platform : windows
used software:
- vertrigo server - apache and mysql (http://vertrigo.sourceforge.net/)
- eclipse PDT - php IDE (http://www.eclipse.org/pdt/downloads/)
- xdebug dll library (http://xdebug.org/)
Few easy steps, how to set it
- download, install and run vertrigo server
- download eclipse PDT
- download "php_xdebug-2.0.3-5.2.5.dll" to
"C:\Program Files\VertrigoServ\Php\ext\php_xdebug-2.0.3-5.2.5.dll" - do NOT enable xdebug via vertrigo>settings>extensions settings
- edit "php.ini" saved in "C:\Program Files\VertrigoServ\Php\" (right click on vertrigo tray icon > config files > php.ini)add at the end these lines :[xdebug]zend_extension_ts ="C:\Program Files\VertrigoServ\Php\ext\php_xdebug-2.0.3-5.2.5.dll"xdebug.remote_autostart=onxdebug.remote_enable=onxdebug.remote_host=127.0.0.1xdebug.remote_port=9000xdebug.remote_handler=dbgpxdebug.remote_mode=reqxdebug.idekey=ECLIPSE_XDEBUGyou need to turn off Zend optimizer (coment following lines):[Zend]zend_optimizer.optimization_level=15zend_extension_ts="C:\Program Files\VertrigoServ\Zend\ZendExtensionManager.dll"zend_extension_manager.optimizer_ts="C:\Program Files\VertrigoServ\Zend\Optimizer-3.3.0"like this:[Zend]zend_optimizer.optimization_level=15;zend_extension_ts="C:\Program Files\VertrigoServ\Zend\ZendExtensionManager.dll";zend_extension_manager.optimizer_ts="C:\Program Files\VertrigoServ\Zend\Optimizer-3.3.0"
- find line "memory_limit = 8M" in "php.ini"
change it to "memory_limit = 12M" - restart vertrigo (right click on tray icon > server > restart)
- set up eclipse as written here :http://devzone.zend.com/article/2930-Debugging-PHP-applications-with-xdebug