配置eclipse php调试环境

软件开发的断点调试是必不可少,这里介绍eclipse工具中php的调试配置

下面是使用xdebug来进行调试

sudo apt-get install php5-cli

sudo apt-get install php5-xdebug

配置eclipse的调试和运行环境

打开eclipse的菜单-[windows]->[preferences]

选择php debug在右面窗口中的php debugger中选择xdebug,下面的字符集选择与开发的代码字符集一致,然后应用。

选择php executables的窗口右面新建,名称:php5excute phth/usr/bin/php5ini file /etc/php5/apache2/php.initypeclidebuggerxdebug

好了,现在一切顺利,就可以进行断点调试程序了。

posted @ 2011-08-17 21:58  zwkuang  阅读(586)  评论(0)    收藏  举报