终于发现zend studio + xdebug设置断点各种不正常的原因所在!

研究zendstudio+xdebug有好几天了,断点怎么都不停,各种崩溃!不过最终终于搞定了!哈哈!


不敢私藏,拿出来分享!



真相就是:现在好多人都是无线wifi,于是按网上的教程设置了xdebug.remote_host为127.0.0.1或者localhost……于是乎在断点时有效时无效中郁闷得死去活来……


各位亲,其实问题的根源就在这里,请将这里改成你的IP!断点奇迹般的ok了!


另外还需要注意的是:xdebug.remote_port这个设置,默认是9000,但fast-cgi的默认端口也是9000,端口被占用,这是什么鬼……改一个未被占用的端口即可!


附上我的xdebug设置:


[XDebug]  
zend_extension = "D:\phpStudy\php_xdebug.dll"
;是否开启远程调试
xdebug.remote_enable = 1
;是否开启调试内容
xdebug.profiler_enable = 1
;开启远程调试自动启动
xdebug.remote_autostart = 0
;开启自动跟踪
xdebug.auto_trace = 1
;调试插件dbgp
xdebug.remote_handler = "dbgp"
;允许调试的客户端IP
xdebug.remote_host = "192.168.1.181"
;远程调试的端口
xdebug.remote_port = 9001
xdebug.idekey= "ECLIPSE_DBGP"
;调试输出路径
xdebug.profiler_output_dir = "D:\phpStudy\tmp\xdebug"
xdebug.remote_log = "D:\phpStudy\tmp\xdebug\remote.log"
;跟踪输出路径
xdebug.trace_output_dir = "D:\phpStudy\tmp\xdebug"
;开启异常跟踪
xdebug.show_exception_trace = 1
;是否收集变量
xdebug.collect_vars = 1
;是否收集返回值
xdebug.collect_return = 1
;是否收集参数
xdebug.collect_params = 1
;显示局部变量
xdebug.show_local_vars = 1
;显示默认的错误信息
xdebug.default_enable = 1
xdebug.profiler_enable_trigger = 0


评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值