본문 바로가기

ProgrammingLogs

php v5.3에 xdebug v2.2.7 설치하기

$ yum install -y php-devel 

$ git clone git://github.com/xdebug/xdebug.git
$ cd xdebug
$ git checkout 2.2.7
$ ./rebuild.sh
$ vi /etc/php.d/xdebug.ini

zend_extension=/usr/lib64/php/modules/xdebug.so 

xdebug.default_enable=On 
xdebug.show_exception_trace=On 
xdebug.show_local_vars=1 
xdebug.max_nesting_level=50 
xdebug.var_display_max_depth=6 

xdebug.dump_once=On 
xdebug.dump_globals=On 
xdebug.dump_undefined=On 
xdebug.dump.REQUEST=* 
xdebug.dump.SERVER=REQUEST_METHOD,REQUEST_URI,HTTP_USER_AGENT,SCRIPT_NAME 

xdebug.remote_enable=true 
xdebug.remote_host=127.0.0.1 
xdebug.remote_port=9000 
xdebug.remote_handler=dbgp 

;xdebug.profiler_enable = 1 
xdebug.profiler_enable_trigger = 1 
xdebug.profiler_enable_trigger_value = "" 
xdebug.profiler_output_dir ="/home/beta/www/.profile" 
xdebug.profiler_output_name = cachegrind.out.%t.%p 

$ service php-fpm reload