mac php xdebug
sudo vim /etc/apache2/httpd.conf
Options Indexes
sudo cp /etc/php.ini.default /etc/php.ini
sudo sh -c 'echo zend_extension=$(find /usr/lib/php/extensions -name "xdebug.so") >> $(php -qr "echo php_ini_loaded_file();") && apachectl restart'
zend_extension=/usr/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so
vi /etc/php.ini
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
xdebug.auto_trace=on
xdebug.collect_params=on
xdebug.collect_return=on
xdebug.max_nestring_level=100
xdebug.profile_enable=on
xdebug.remote_enable=on
xdebug.remote_host=localhost
xdebug.trace_output_dir="/tmp"
xdebug.profile_output_dir="/tmp"
xdebug.idekey=webide
xdebug.mode=req
sudo apachectl restart
http://localhost/www/002.php?XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=14284579341103
update php.ini
zend_extension=/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so
xdebug.auto_trace=on
xdebug.remote_autostart=on
xdebug.remote_enable=on
;xdebug.remote_enable=1
;xdebug.remote_mode=”req”
;xdebug.remote_log=”/var/log/xdebug.log”
xdebug.remote_host=localhost
xdebug.remote_port=9000
;xdebug.remote_handler=dbgp
;xdebug.idekey=”netbeans-xdebug”
max_execution_time=3000

浙公网安备 33010602011771号