eclipse php插件装置的办法:起首装置eclipse;而后设置装备摆设php运转环境;而后接着顺次关上“Prefences→PHP→Debug”;最初关上Installed Debuggers并抉择XDebug便可。
一、起首装置eclipse,到官网自行下载便可,这里再也不具体形容eclipse的装置步骤
二、php插件地点: http://www.eclipse.org/pdt/,外面讲的很具体,能够抉择间接下载曾经装置好php插件的eclipse,也能够正在现有的eclipse中间接装置php插件,两种形式随意抉择
三、装置wampServer,这个是运转php的集成环境,你也能够抉择其余环境,这里网上下载,间接装置便可
四、设置装备摆设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=on xdebug.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能够将此项设置为Off xdebug.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.php eclipse中会孕育发生断点
阐明:
eclipse正在抉择工作空间的时分将工作空间间接抉择到wamp的www目次下,
这样愈加不便。
以上就是eclipse php插件装置的办法的具体内容,更多请存眷资源魔其它相干文章!
标签: php教程 eclipse php故障解决 php使用问题 php插件
抱歉,评论功能暂时关闭!