Hi symfonians,
I think you probably finding for a solution how to install and use xdebug on Zend Server CE on your Mac OSX like me.
First of all, to say, Mac OSX (snow leopard), Zend Server CE and Symfony 2 didn’t well matched built to work together.
At least, not perfect instantly.
So, if you want to work on those tools, you have to tweak a little bit of your tool to make it works together.
As Zend Server CE came with its own debugger, Zend Debugger, but someone prefer to use xdebug instead of Zend Debugger as the same as me.
Here are the steps how to make xdebug work on Zend Server CE on Mac OSX with Symfony 2.
- Open Zend Server page, http://localhost:10081/
- Disable “Zend Debugger”
- Download xdebug.so binary which I suggest to download at -> http://aspn.activestate.com/ASPN/Downloads/Komodo/RemoteDebugging
- Extract the archive and browse into ’5.3′ folder then copy ‘xdebug.so’ to ‘/usr/local/zend/lib/php_extensions’
- Open ‘/usr/local/zend/etc/php.ini’ and add the following lines above [zend] section
zend_extension=/usr/local/zend/lib/php_extensions/xdebug.so [xdebug] xdebug.remote_enable=1 xdebug.remote_host=”localhost” xdebug.remote_port=9000 xdebug.show_local_vars=On xdebug.var_display_max_data=10000 xdebug.var_display_max_depth=20
- Now restart your Zend Server by ‘sudo /usr/local/zend/bin/zendctl.sh stop’ and ‘sudo /usr/local/zend/bin/zendctl.sh start’
- You should be able to work with xdebug now!
To work with xdebug, I personally love the way by JetBrain’s PhpStorm with their bookmarklet generator, very useful tool.
Hope this help,
Seree



