PDA

View Full Version : xdebug function



vkimura
04-16-2009, 07:35 PM
Hi,

I uploaded xdebug.so (64-bit for linux) on the directory public_html. Then I commented out the references to zend debug and zend optimizer since xdebug isn't compatible with these. I deleted these lines in the php.ini file in the public_html folder. Then I added these lines:

; xdebug config for Linux and Mac OS X
zend_extension=/home/[user]/public_html/xdebug.so
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=[my local computer's ip]
xdebug.remote_port=9000

However, when I used php -m via shell, the xdebug wasn't showing up.

I'm thinking someone must have done this successfully by now on bluehost.

Thanks for your help,
vkimura

brett-bluehost
05-01-2009, 01:24 AM
In order to get xdebug loaded with Zend you must have the following settings in your php.ini;
[Zend]
zend_extension = /home/[username]/path/to/xdebug.so
zend_extension_ts = /home/[username]/path/to/xdebug.so
xdebug.remote_enable = 1
xdebug.remote_port = 9000
xdebug.remote_host = localhost

So the missing factor was the zend_extension_ts line.

Thank you,
Brett
Level III Tech Support Engineer
BlueHost.com
888.401.4678