linuxxamppeclipsexdebug无法进入断点-创新互联

一、xampp 版本 1.8.3-5linuxxamppeclips
exdebug无法进入断点

xampp安装后会自动集成xdebug,目录一般为 /opt/lampp/lib/php/extensions/***-debug-***目录

创新互联是一家专注于做网站、成都做网站与策划设计,石龙网站建设哪家好?创新互联做网站,专注于网站建设10余年,网设计领域的专业建站公司;建站业务涵盖:石龙等地区。石龙做网站价格咨询:028-86922220

关于php 与php.ini路径

php程序路径为:/opt/lampp/bin/

php.ini配置文件路径为:/opt/lampp/etc/

1、配置文件一般在/opt/lampp/etc/php.ini

修改php.ini在文件最底部加入下面项

[XDebug]
zend_extension ="/opt/lampp/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so"
xdebug.profiler_enable=on
xdebug.trace_output_dir="/opt/lampp/tmp"
xdebug.profiler_output_dir="/opt/lampp/tmp"
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9099
xdebug.auto_trace = On
xdebug.show_exception_trace = On
xdebug.show_local_vars = On
xdebug.remote_autostart = On
xdebug.remote_enable = On
xdebug.collect_vars = On
xdebug.collect_return = On
xdebug.collect_params = On

一定要注意9099这个端口,系统默认是9000如果你这里设置的不是9000要注意修改eclipse debug选项

具体在debug configurations ->debug->configurations->debug port

二、设置eclipse 步骤

打开Eclipse,在里面设定xdebug, window->preferences->PHP->Debug, PHP Debugger 选择 Xdebug Server 选择 php Default Web Server, php Executalbe 点进去之后按Add, 在Executable Path按Browse,选择/opt/lampp/bin/php ,php ini文件路径在/opt/lampp/etc/php.ini ,

名字嘛,随便给个就好,叫php吧,php debuger选择XDebug ,点ok

三、最后一定重起apache


当前题目:linuxxamppeclipsexdebug无法进入断点-创新互联
路径分享:http://bzwzjz.com/article/dhjsid.html

其他资讯

Copyright © 2007-2020 广东宝晨空调科技有限公司 All Rights Reserved 粤ICP备2022107769号
友情链接: 成都网站建设公司 网站制作 成都网站制作 成都网站制作 成都网站建设 网站制作 成都网站建设 企业网站建设公司 成都网站建设 温江网站设计 成都网站建设 重庆网站制作 成都网站建设 响应式网站设计 成都定制网站建设 手机网站建设 网站设计制作报价 成都网站建设 成都网站建设 手机网站制作 网站建设公司 成都响应式网站建设