hw-1

Xdebug for XAMPP on OSX

install autoconf

1
$ brew install autoconf

install debug

1
2
3
4
5
6
7
8
9
wget http://xdebug.org/files/xdebug-2.5.3.tgz
tar -xvzf xdebug-2.5.3.tgz
cd xdebug-2.5.3
phpize
./configure --enable-xdebug --with-php-config=/Applications/XAMPP/xamppfiles/bin/php-config
make
modules_path=$(find /Applications/XAMPP/xamppfiles/lib/php/extensions -name "no-debug-non-zts*")
echo $modules_path
sudo cp modules/xdebug.so $modules_path
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Edit /Applications/XAMPP/xamppfiles/etc/php.ini
//After zend_extension
zend_extension=xdebug.so
//add xdebug configure
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_autostart = 1
xdebug.remote_port=9000
xdebug.show_local_vars=1
xdebug.remote_log=/Applications/XAMPP/logs/xdebug.log
//Optional – for development only
//Find max_execution_time and set to unlimited:
max_execution_time=0

Restart Apache using XAMPP’s manager-osx