php安装xdebug 用komodo进行调试
下载服务器相关版本的xdebug
1. Unpack the tarball: tar -xzf xdebug-2.1.x.tgz
2. cd xdebug-2.1.x
3. Run phpize: phpize
4. ./configure --enable-xdebug
如果你的php不是用的rpm包安装的,可能是用tar包安装的,请这样: ../configure --enable-xdebug --with-php-config=/path/to/php-config
5. Run: make
6. cp modules/xdebug.so /to/wherever/you/want/it
我的是tar包安装的,所以: cp modules/xdebug.so /usr/lib/php/modules/
7. 在php.ini中添加
[xdebug]
zend_extension = /usr/lib/php/modules/xdebug.so
xdebug.remote_enable=1
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=192.168.1.79
xdebug.remote_port=9000
调试的时候在网站的URL后面加上如下字符串就行:
&XDEBUG_SESSION_START=on
下载服务器相关版本的xdebug
1. Unpack the tarball: tar -xzf xdebug-2.1.x.tgz
2. cd xdebug-2.1.x
3. Run phpize: phpize
4. ./configure --enable-xdebug
如果你的php不是用的rpm包安装的,可能是用tar包安装的,请这样: ../configure --enable-xdebug --with-php-config=/path/to/php-config
5. Run: make
6. cp modules/xdebug.so /to/wherever/you/want/it
我的是tar包安装的,所以: cp modules/xdebug.so /usr/lib/php/modules/
7. 在php.ini中添加
[xdebug]
zend_extension = /usr/lib/php/modules/xdebug.so
xdebug.remote_enable=1
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=192.168.1.79
xdebug.remote_port=9000
调试的时候在网站的URL后面加上如下字符串就行:
&XDEBUG_SESSION_START=on
注意:是Get传参,对于有些网站点击调试的时候,浏览器地址栏不变,应为他们是post传参,他们表单的action可能是空,所以用firebug编辑form表单的Action ,把action改成“URL+&XDEBUG_SESSION_START=on”
Cheap UGG Boots For Women offers all kinds of UGG Boots up to 70% off and free shipping! www.cheapuggbootsforwomen.biz