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
    
    评论

报告相同问题?

悬赏问题

  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波
  • ¥15 针对曲面部件的制孔路径规划,大家有什么思路吗
  • ¥15 钢筋实图交点识别,机器视觉代码
  • ¥15 如何在Linux系统中,但是在window系统上idea里面可以正常运行?(相关搜索:jar包)
  • ¥50 400g qsfp 光模块iphy方案
  • ¥15 两块ADC0804用proteus仿真时,出现异常
  • ¥15 关于风控系统,如何去选择