dptdb84606 2015-02-13 20:30 采纳率: 0%
浏览 68

XDebug安装问题

I've been trying to debug an issue with a PHP-based application which is too complex for a simple vardump so I wanted to correctly configure XDebug on my system. I'm using MAMP on OSX. I've gone through the wizard on the XDebug website and followed the steps provided but for some reason I can't get XDebug to show up in my phpinfo. The only thing I've noticed is that phpize returns

PHP Api Version: 20090626

Zend Extension Api No: 220090626

Which I believe is my local PHP5.3 version and the wizard says I should be getting

Zend Module Api No: 20121212

Zend Extension Api No: 220121212

Which is the version used by MAMP, PHP5.5

Edit: I've put the following in php.ini

[xdebug]

zend_extension="/Applications/MAMP/bin/php/php5.5.10/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so"

xdebug.remote_enable=1

xdebug.remote_host=localhost

xdebug.remote_port=9000

xdebug.remote_handler=dbgp

xdebug.remote_autostart=1

Any suggestions on how to set this up correctly? I've been looking at it for a few days now and its driving me crazy.

  • 写回答

2条回答 默认 最新

  • dqd3690 2015-02-13 20:38
    关注

    Below is valid if your extension compiled and installed properly.

    Never worked with MAMP but had similar issue(Ubuntu) after pecl install it would not add xdebug as an extension

    In your php.ini or /path/to/php/conf.d/xdebug.ini (/etc/php5/conf.d/20-xdebug.ini on Ubuntu))

    Make sure that it has

    zend_extension=/usr/lib/php5/20100525/xdebug.so
    

    As usually it has:

    extension=/usr/lib/php5/20100525/xdebug.so
    
    评论

报告相同问题?

悬赏问题

  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题