php相当于eclipse中的一个模块,针对网络开发的,具体如下:PHPeclipse这个插件包括的功能有:PHP语法分析,调试,代码格式化,大纲视图,代码模板定制等.如果平时要同时做一些java和php的Web应用,就需要使用Eclipse,可以安装PHPeclipse和MyEclipse,这样Eclipse就可以同时开发ajax,php,jsp程序了.安装Apache,Tomcat及php、Mysql和Eclipse插件(Eclipse ◆ MyEclipse ◆ Phpeclipse)
PHPEclipse IDE built as an Eclipse plug-in. It takes advantage of a robust and widely used application framework. Wiki documentation and IRC support available.
关于phpeclipse
PHPEclipse 是一个 Eclipse插件,它为 PHP 开发人员提供一个集成的开发环境.
help-Install New Software...
work with:选择 --All Available Sites-- (网速慢的同学稍等一下,刷出列表以后,在下拉框中输入php)
安装完成后回自动重启eclipse;
采用 xdebug
install.后两项命令执行的时候,可能会需要sudo权限,因为涉及到将程序文件复制到系统目录.
代码如下:
[xdebug]
xdebug.remote_handler=dbgp
xdebug.auto_trace=on
xdebug.collect_params=on
xdebug.collect_return=on
xdebug.max_nestring_level=100
xdebug.profile_enable=on
xdebug.remote_enable=on
xdebug.remote_host=localhost
xdebug.trace_output_dir="/tmp"
xdebug.profile_output_dir="/tmp"
xdebug.idekey=webide
xdebug.mode=re
放到这个目录中的ini文件会被php自动加载.
至此,xdebug的安装配置已经完成.
先配置debug,选择php选择debug,将php的debugger选择为xDebug.接着配置Server,
选择PHP
然后设置成default.
最后配置PHP
Executables,add 随便起个名字,path设置成/usr/bin/php
最后将PHP debugger设置成为XDebug就可以了.
步骤如下:
[xhtml] view plaincopyprint?
[Xdebug]
xdebug.auto_trace = On
xdebug.show_exception_trace = On
xdebug.remote_autostart = On
xdebug.remote_enable = On
xdebug.remote_handler = dbgp
xdebug.profiler_enable = on
这里要特别注意:如果在文件里有其他的zend_extension_ts,需要注释掉,否则apache无法启动.
第四步:启动apache.
第五步:在eclipse的项目里的Properties里面找到"PHP Debug",在PHP Debugger里面选择"XDebug"
第六步:再在Windows-Preferences里面配置下PHP Servers
此时此刻呢,进入debug界面,就可以开始设置断点进行debug了.
eclipse开发php全过程的搭建带debug的配置
①.:先安装好java运行环境这个eclipse运行靠的就是这个,自己来安装吧.
[html]?view plaincopyprint?
xdebug.profiler_enable=on
xdebug.show_exception_trace?=?On
xdebug.remote_autostart?=?On
xdebug.remote_enable?=?On
xdebug.collect_vars?=?On
以上就是土嘎嘎小编为大家整理的解析php中eclipse,php相关主题介绍,如果您觉得小编更新的文章只要能对粉丝们有用,就是我们最大的鼓励和动力,不要忘记讲本站分享给您身边的朋友哦!!