分享

Zend Studio之调试Xdebug base url apache 非80端口

 quasiceo 2015-06-26

Zend Studio之调试Xdebug  base  url apache 非80端口 

注意:xdebug版本要支持PHP版本,不然就game over了,可以在phpinfo()中查看Xdebug是否安装成功


一、在php.ini配置调试信息(如果安装了zend debugger要注释掉其信息)
; XDEBUG Extension
zend_extension = “D:/Web/wamp/bin/php/php5.3.8/zend_ext/php_xdebug-2.1.2-5.3-vc9-x86_64.dll”(注意中文字符,注意修改)
[xdebug]
; 开启自动跟踪
xdebug.auto_trace = On
xdebug.show_exception_trace = On
;xdebug.remote_autostart = On
xdebug.collect_vars = On
xdebug.collect_return = On
xdebug.collect_params = On
xdebug.trace_output_dir=”D:/Web/wamp/tmp”
xdebug.profiler_enable=On
xdebug.profiler_output_dir=”D:/Web/wamp/tmp”
xdebug.remote_enable = true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = “D:/Web/wamp/tmp”
2.在zend Stuido中配置xdebug
窗口 - 首选项 - PHP - Debug,将PHP Debugger 设置为Xdebug
3.在需要调试的文件上右键
Zend Studio之调试Xdebug - 颓废熊 - 破坏的笔记
打开调试窗口
Zend Studio之调试Xdebug - 颓废熊 - 破坏的笔记

 Zend Studio之调试Xdebug - 颓废熊 - 破坏的笔记
 再按调试就OK了

Zend Studio之调试Xdebug - 颓废熊 - 破坏的笔记
 
———————————-
所有的调试服务器配置都可以在 “窗口” -> “首选项” -> “PHP Servers” 中查看编辑
Edit Server
Base URL:http://localhost
Local Web Root:D:\Web\wamp\www
Add new server path map
Path on Server:http://localhost/pro/ThinkPHP3 或者物理地址
path in Workspace: /ThinkPHP3
Zend Studio之调试Xdebug - 颓废熊 - 破坏的笔记
 
最后一点,不要忘记在调试时启用单步执行过滤器哦,不然zend studio在用 xdebug 调试时可能就直接运行到结果

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章