安装 XDebug 并加载到 Acquia Drupal Stack 中?
我正在尝试遵循这篇文章:
http://robshouse.net /article/xdebug-komodo-and-acquia-drupal-stack-installer
我做了所有这些,但 XDebug 仍然没有被加载或显示在 phpinfo 上。
有人让它成功工作吗?
我用 Homebrews 安装了 XDebug,brew install xdebug。我将 xdebug.so 复制到我的 acquia 堆栈文件夹 /php/ext/xdebug.so 并将适当的行添加到 php.ini,重新启动堆栈和 Apache,但没有成功。
尝试了几篇不同的文章,但都没有成功。
我的 php.ini:
[debug]
; Remote settings
zend_extension=/Applications/acquia-drupal/php/ext/xdebug.so
xdebug.remote_autostart=off
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9000
这是在我的 apache 错误中报告的:
Failed loading /Applications/acquia-drupal/php/ext/xdebug.so
但该文件确实存在。
I am trying to follow this article:
http://robshouse.net/article/xdebug-komodo-and-acquia-drupal-stack-installer
I did all of that, yet XDebug is still not being loaded or shown on phpinfo.
Has anyone got this to successfully work?
I installed XDebug with Homebrews, brew install xdebug. I copied xdebug.so to my acquia stack folder, /php/ext/xdebug.so and added the approrpiate lines to php.ini, restarted the stack and Apache and no luck.
Tried a few different articles and have not had success.
My php.ini:
[debug]
; Remote settings
zend_extension=/Applications/acquia-drupal/php/ext/xdebug.so
xdebug.remote_autostart=off
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9000
This is reported in my apache errors:
Failed loading /Applications/acquia-drupal/php/ext/xdebug.so
But the file does exist there.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
robshouse.net 的作者将其网站移至 Drupal Gardens,并且没有迁移问题中链接的文章。然而这篇文章有些过时了。
您无需下载任何内容即可在当前版本的 Acquia Dev Desktop 中启用 xdebug。
只需取消注释 /Applications/acquia-drupal/php5_*/bin/php.ini 中提到 xdebug 的行即可。 PHP 版本 5.2、5.3 和 5.4 分别有 3 个。对所有这些进行更改(除非您更了解)。
您需要停止并启动 Acquia Dev Desktop 才能使更改生效。
The author of robshouse.net moved his website to Drupal Gardens and did not migrate the article linked to in the question. However the article is somewhat outdated.
You do not need to download anything to enable xdebug in current versions of Acquia Dev Desktop.
Simply uncomment the line that mentions xdebug in /Applications/acquia-drupal/php5_*/bin/php.ini. There are three of these for PHP versions 5.2 5.3 and 5.4 respectively. Make the change in all of them (unless you know better).
You will need to stop and start Acquia Dev Desktop for the change to take effect.
对于 php -v 7.0.3 用户:
检查模块是否已安装。然后复制整个
配置
xdebug.so
:完成:-)
For php -v 7.0.3 users:
Check that the module is installed. Then copy the entire
configure
xdebug.so
:DONE :-)
我也没有让 XDebug 与 Homebrew 一起工作。
从 ActiveState 获取工作 xdebug.so。
http://code.activestate.com/komodo/remotedebugging/
关于此的文章:
http://debuggable.com/posts/setting-up-xdebug-on-mac-os-x-or-win32-linux:480f4dd6-0240-4a90-8fa1-4e41cbdd56cb
I didn't get the XDebug to work either with Homebrew.
Get the working xdebug.so from ActiveState.
http://code.activestate.com/komodo/remotedebugging/
Article about this:
http://debuggable.com/posts/setting-up-xdebug-on-mac-os-x-or-win32-linux:480f4dd6-0240-4a90-8fa1-4e41cbdd56cb