MEM
MEM

Reputation: 31377

Setup xdebug - doesn't appear on phpinfo();

MAC OS X 10.7.5 MAMP PRO 2.0.5

If I do:

php --ini

I get:

Configuration File (php.ini) Path: /Applications/MAMP/bin/php/php5.3.6/conf
Loaded Configuration File:         /Applications/MAMP/bin/php/php5.3.6/conf/php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed:      (none)

On:

/Applications/MAMP/bin/php/php5.3.6/conf/php.ini

I have:

[xdebug] 
zend_extension="/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"
xdebug.default_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9001
xdebug.remote_autostart=1
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.idekey="netbeans-xdebug"
xdebug.remote_log="/Applications/MAMP/logs/xdebug.log"

I then see phpinfo(), information I got NO xdebug information at all.

xdebug.so IS on this path.

I do have restart the apache server (using MAMP);

Can anyone drop me a clue here ?

UPDATE:

Just notice that on phpinfo I have:

Configuration File (php.ini) Path   
/Applications/MAMP/bin/php/php5.3.6/conf

Loaded Configuration File   
/Library/Application Support/appsolute/MAMP PRO/conf/php.ini 

I don't understand which one is he actually looking at. Anyway, changed on both. No luck.

Upvotes: 1

Views: 2112

Answers (1)

MEM
MEM

Reputation: 31377

Apparently, the file that should be edited according to Xdebug oficial information is:

/Library/Application Support/appsolute/MAMP PRO/conf/php.ini

And apparently as well, in order to change that file you should use MAMP PRO options, otherwise, the file will always revert to the prior state.

So, to solve those issue I had to:

MAMP PRO > File > Edit Template > PHP > PHP 5.3.6 php.ini

And then remove the comment (;) on:

[xdebug]
zend_extension="/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"

I can now see xdebug on phpinfo();

Upvotes: 4

Related Questions