skiabox
November 24, 2012, 4:23pm
1
I am trying for two days (following every possible guide) to properly configure XDebug (that comes pre-installed in mountain lion) but I get no results on my phpinfo page.
Here is one of the guides I followed :
Here is my php.ini file :
http://pastehtml.com/view/cjg5r8ity.txt
And here is my phpinfo.php page generated by simply using phpinfo() function inside phpinfo.php file :
http://pastehtml.com/view/cjg51kydi.html
skiabox
November 24, 2012, 5:19pm
2
I’ve just found the solution.Mountain lion uses an older xdebug.so version , so the user must download again the source and recompile it.
Here is how to do it.
1.Download the latest version here : http://www.xdebug.org/download.php (we get the file under the ‘source’ link)
2.Unpack the downloaded file with tar -xvzf xdebug-2.2.1.tgz
3.Run: cd xdebug-2.2.1
4.Run: phpize
5.Run: ./configure
6.Run: make
7.Run: sudo cp modules/xdebug.so /usr/lib/php/extensions/no-debug-non-zts-20090626
8.Restart the web server with ‘sudo apachectl restart’