lang/php

Ubuntu PHP XDebug & Eclipse

C/H 2014. 5. 4. 04:51

참고 :



sudo apt-get install php-pear
sudo apt-get install php5-dev
sudo pecl install xdebug
check Last Message
Build process completed successfully
Installing '/usr/lib/php5/20121212/xdebug.so'
install ok: channel://pecl.php.net/xdebug-2.2.5
configuration option "php_ini" is not set to php.ini location
You should add "zend_extension=xdebug.so" to php.ini

sudo vi /etc/php5/apache2/php.ini
sudo vi /etc/php5/cli/php.ini
[xdebug]
zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
xdebug.remote_host=MACHINENAME
[xdebug]
zend_extension=/usr/lib/php5/20121212/xdebug.so
xdebug.profiler_enable=1
xdebug.profiler_output_name=xdebug.out.%t
xdebug.profiler_output_dir=/tmp
xdebug.profiler_enable_trigger=1
xdebug.show_mem_delta=1
xdebug.trace_format=1
xdebug.trace_enable_trigger=1
xdebug.auto_trace=1
xdebug.trace_output_dir=/tmp

xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
xdebug.remote_host=MACHINENAME
[xdebug]
zend_extension=/usr/lib/php5/20121212/xdebug.so
xdebug.profiler_enable=1
xdebug.profiler_output_name=xdebug.out.%t
xdebug.profiler_output_dir=/home/username/tmp
xdebug.profiler_enable_trigger=1
xdebug.show_mem_delta=1
xdebug.trace_format=1
xdebug.trace_enable_trigger=1
xdebug.auto_trace=1
xdebug.collect_return = 1
xdebug.trace_output_name = xdebug.trace.%t
xdebug.trace_output_dir=/home/username/tmp

xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
xdebug.remote_host=localhost


Eclipse > Windows > Preferences > PHP > Debug
PHP Debugger : XDebug
Server : Default PHP Web Server
PHP Executable : NoneDefined
Break at First Line Checking


반응형

'lang > php' 카테고리의 다른 글

PHP RESTful Micro Frameworks  (0) 2014.07.20
PHP 가속기  (0) 2014.07.17
RewriteEngind  (0) 2014.01.22
codeigniter session IE problem  (3) 2013.05.23
window xampp 에서 phpDocumentor2 설치  (0) 2013.03.25