首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >MAC Capitan 10.11:安装XDEBUG

MAC Capitan 10.11:安装XDEBUG
EN

Stack Overflow用户
提问于 2016-04-27 10:19:34
回答 3查看 3.4K关注 0票数 3

我正在搜索调试php脚本的方法。在互联网上,我发现我可以用MacGDBp + XDebug来做这件事。当我尝试在Shell中使用PECL安装时:

代码语言:javascript
运行
复制
sudo pecl install xdebug

The next error have been occured:

downloading xdebug-2.4.0.tgz ...

Starting to download xdebug-2.4.0.tgz (264,832 bytes)
.....................done: 264,832 bytes

76 source files, building
running: phpize
grep: /usr/include/php/main/php.h: No such file or directory

grep: /usr/include/php/Zend/zend_modules.h: No such file or directory

grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory

Configuring for:
PHP Api Version:

Zend Module Api No:

Zend Extension Api No:

Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

帮我找到解决那个问题的方法。

EN

Stack Overflow用户

发布于 2017-05-23 18:07:59

的出色响应几乎让xdebug使用MacOSSiera10.12与NetBeans协同工作。只需要两个更改:在步骤2中,在zend_extension="/usr/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so“之后还添加xdebug.remote_enable=1

这是必要的,因为预编译的.so文件禁用了xdebug远程访问。NetBeans和其他工具需要启用它。

票数 2
EN
查看全部 3 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36886982

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档