eclipse php插件安装的方法
2022-12-02 09:01:16
100
{{single.collect_count}}

eclipse php插件安装的方法:首先安装eclipse;然后配置php运行环境;然后接着依次打开“Prefences→PHP→Debug”;最后打开Installed Debuggers并选择XDebug即可。

php入门到就业线上直播课:进入学习
Apipost = Postman + Swagger + Mock + Jmeter 超好用的API调试工具:点击使用

1、首先安装eclipse,到官网自行下载即可,这里不再详细描述eclipse的安装步骤

2、php插件地址: http://www.eclipse.org/pdt/,里面讲的很详细,可以选择直接下载已经安装好php插件的eclipse,也可以在现有的eclipse中直接安装php插件,两种方式随便选择
这里写图片描述

3、安装wampServer,这个是运行php的集成环境,你也可以选择其他环境,这里网上下载,直接安装即可

4、配置php运行环境
(1)配置php本地run
1.打开Prefences→PHP→PHP Executables→Execution Environments →Add

这里写图片描述

2.打开Prefences→PHP→Debug
这里写图片描述

3)配置php远程Debug环境
1.启动wamp,打开 PHP→php.ini 在结尾处加入 以下代码
2.重启wamp
这里写图片描述

zend_extension = "d:/wamp/bin/php/php5.3.13/zend_ext/php_xdebug-2.2.0-5.3-vc9.dll"[xdebug]xdebug.profiler_enable=onxdebug.trace_output_dir="d:/wamp/logs/xdebug-log";xdebug 的数据文件目录xdebug.profiler_output_dir="d:/wamp/logs/xdebug-log" ;xdebug 的数据文件目录xdebug.auto_trace = On ;开启自动跟踪xdebug.show_exception_trace = On ;开启异常跟踪xdebug.remote_autostart = On ;开启远程调试自动启动 Off 关闭远程debug可以将此项设置为Offxdebug.remote_enable = On ;开启远程调试xdebug.remote_handler=dbgp ;用于zend studio远程调试的应用层通信协议xdebug.remote_host=127.0.0.1 ;允许连接的zend studio的IP地址xdebug.remote_port=9000 ;反向连接zend studio使用的端口xdebug.collect_vars = On ;收集变量xdebug.collect_return = On ;收集返回值xdebug.collect_params = On ;收集参数xdebugbug.max_nesting_level = 10000
登录后复制

2.打开Prefences→PHP→Debug→Installed Debuggers 选择 XDebug

这里写图片描述

3.将测试test.php放在D:\wamp\www目录下
在地址栏输入http://localhost/test.phpeclipse中会产生断点

说明:
eclipse在选择工作空间的时候将工作空间直接选择到wamp的www目录下,
这样更加方便。

以上就是eclipse php插件安装的方法的详细内容,更多请关注php中文网其它相关文章!

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}