Login
网站首页 > 文章中心 > 其它

解析php中eclipse

作者:小编 更新时间:2023-09-21 14:12:27 浏览量:161人看过

php中文件夹建立问题及Eclipse文件夹

Eclipse php是什么

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 开发人员提供一个集成的开发环境.

eclipse php 怎么用

help-Install New Software...

work with:选择 --All Available Sites-- (网速慢的同学稍等一下,刷出列表以后,在下拉框中输入php)

安装完成后回自动重启eclipse;

怎样调试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就可以了.

如何用PHP-Eclipse调试PHP程序

步骤如下:

[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需要怎样配置

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相关主题介绍,如果您觉得小编更新的文章只要能对粉丝们有用,就是我们最大的鼓励和动力,不要忘记讲本站分享给您身边的朋友哦!!

版权声明:倡导尊重与保护知识产权。未经许可,任何人不得复制、转载、或以其他方式使用本站《原创》内容,违者将追究其法律责任。本站文章内容,部分图片来源于网络,如有侵权,请联系我们修改或者删除处理。

编辑推荐

热门文章