安装 XDebug 并加载到 Acquia Drupal Stack 中?

发布于 2024-10-02 14:26:35 字数 870 浏览 4 评论 0原文

我正在尝试遵循这篇文章:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

一页 2024-10-09 14:26:35

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.

纸伞微斜 2024-10-09 14:26:35

对于 php -v 7.0.3 用户:

ssh: Brew update && upgrade
ssh: brew install homebrew/php/php70-xdebug
ssh: php -m

检查模块是否已安装。然后复制整个

usr/local/Cellar/php70/7.0.3/ content to - >
Applications/DevDesktop/php7_0/

ssh: nano /usr/local/etc/php/7.0/php.ini

配置xdebug.so

ssh: sudo cp /usr/local/etc/php/7.0/php.ini     
/Applications/DevDesktop/php7_0/bin/

完成:-)

For php -v 7.0.3 users:

ssh: Brew update && upgrade
ssh: brew install homebrew/php/php70-xdebug
ssh: php -m

Check that the module is installed. Then copy the entire

usr/local/Cellar/php70/7.0.3/ content to - >
Applications/DevDesktop/php7_0/

ssh: nano /usr/local/etc/php/7.0/php.ini

configure xdebug.so:

ssh: sudo cp /usr/local/etc/php/7.0/php.ini     
/Applications/DevDesktop/php7_0/bin/

DONE :-)

香橙ぽ 2024-10-09 14:26:35

我也没有让 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文