Install XDebug and load in Acquia Drupal Stack?

橙三吉。 提交于 2019-12-13 05:07:45

问题


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.


回答1:


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




回答2:


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.




回答3:


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 :-)



来源:https://stackoverflow.com/questions/4180130/install-xdebug-and-load-in-acquia-drupal-stack

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!