Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I download Xdebug for PHP and Mac OS X?

I went to the xdebug site, but I can't find a mac download. http://www.xdebug.org/download.php

Did I miss something? NetBeans tells me to get xdebug for setting up an PHP development environment on the mac.

like image 613
openfrog Avatar asked Dec 20 '09 19:12

openfrog


3 Answers

You can just use the PECL download option, but you'll need to add a sudo

sudo pecl install xdebug

Then set the path to xdebug in your php.ini file. If everything is still at the default I'd imagine you'd need:

zend_extension="/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"

However, you can check your extensions directory via:

pecl config-get ext_dir

(You will need to restart Apache after this install, either via the command line or by turning web sharing off and on again in System Preferences.)

HTH

like image 156
Carlton Gibson Avatar answered Oct 17 '22 05:10

Carlton Gibson


Use Homebrew.

brew install php55-xdebug

Or php56-xdebug or php70-xdebug depending on your PHP version.

like image 32
Asaph Avatar answered Oct 17 '22 06:10

Asaph


You will need to compile it from source. Or alternatively, maybe this tutorial on getting xdebug working on mac os x with macports will help.

like image 1
Gregory Pakosz Avatar answered Oct 17 '22 04:10

Gregory Pakosz