在MAMP PRO上安装并启用Xdebug [英] Installing and enabling Xdebug on MAMP PRO

查看:99
本文介绍了在MAMP PRO上安装并启用Xdebug的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的MAMP PRO安装上设置Xdebug.我尝试通过自定义安装说明来尝试xdebug.org/wizard.php来获取正确的Xdebug版本,但是我被卡住了.

I am trying to set up Xdebug on my MAMP PRO installation. I tried xdebug.org/wizard.php to get the correct Xdebug version with custom installation instructions but I got stuck.

按照定制的安装说明中的步骤4 ,我应该获得以下输出:

According to step 4 in the tailored installation instructions I should get the following output:

Configuring for:
...
Zend Module Api No:      20100525
Zend Extension Api No:   220100525

但是我的输出如下:

Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626

接下来,我尝试在xdebug.org/docs/faq#custom-phpize中使用说明,因为量身定制的安装说明会建议我这样做.

Next I try the instructions at xdebug.org/docs/faq#custom-phpize because the tailored installation instructions advice me to do so.

我通过删除xdebug-2.2.1.tgz和解压缩的文件夹来撤消第一步,然后再次从步骤1开始.我在第4步中输入的是

I undo the first step by deleting xdebug-2.2.1.tgz and the unpacked folder and then I start at step 1 again. My input for step 4 is

/Applications/MAMP/bin/php/php5.4.4/bin/phpize

,输出内容如下:

grep: /Applications/MAMP/bin/php/php5.4.4/include/php/main/php.h: No such file or directory
grep: /Applications/MAMP/bin/php/php5.4.4/include/php/Zend/zend_modules.h: No such file or directory
grep: /Applications/MAMP/bin/php/php5.4.4/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:        
Zend Module Api No:     
Zend Extension Api No: 

我的猜测是我需要安装php.h,zend_modules.h和zend_extensions.h,但在网上找不到它们.如何最好地进行以安装Xdebug?

My guess would be that I need to install php.h, zend_modules.h and zend_extensions.h but I can not find them on the web. How do I best proceed in order to install Xdebug?

谢谢.

推荐答案

MAMP的创建者尚未在2.1.1版本中发布通常的开源组件包,因此您必须执行以下操作. php.h,zend_modules.h和zend_extensions.h可以在PHP 5.4.4的源代码中找到.这是带有源代码的页面的链接: http://us2 .php.net/get/php-5.4.4.tar.gz/from/a/mirror

The creators of MAMP have not released the usual open source components package with the 2.1.1 release, so you'll have to do the following. php.h, zend_modules.h and zend_extensions.h can be found in the source code for PHP 5.4.4. Here's a link to the page with the source code: http://us2.php.net/get/php-5.4.4.tar.gz/from/a/mirror

您将要解压缩该文件,然后将文件夹移动到/Applications/MAMP/bin/php/php5.4.4/include,并在需要时创建include目录.我相信您还需要在/Applications/MAMP/bin/php/php5.4.4/include/php中运行./configure来生成Zend标头.然后,再次尝试找到的说明.

You'll want to extract that, and the move the folder to /Applications/MAMP/bin/php/php5.4.4/include, creating the include directory if needed. I believe you'll need to run ./configure from within /Applications/MAMP/bin/php/php5.4.4/include/php as well to generate the Zend headers. Then, try the instructions you found again.

这篇关于在MAMP PRO上安装并启用Xdebug的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆