mac php xdebug

列目录
 

sudo vim /etc/apache2/httpd.conf

Options Indexes 

 

 
启用方式:sudo vim /etc/apache2/httpd.conf, 打开apache的配置文件. 
          去掉LoadModule php5_module libexec/apache2/libphp5.so 的注释  
 

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

posted @ 2015-04-08 09:57  lianhuaren  阅读(74)  评论(0)    收藏  举报