http://xdebug.org
Xdebug를 이용하면 PHP Profiling을 할 수도 있고
debug client을 이용하면 gdb처럼 interactive한 작업도 된다.
(단 web browser가 timeout 나기 전에 모든 일을 해치워야한다.)
------------------------------------
cd /home/ilashman/local/src/
rm -rf apache_1.3.29
rm -rf php-4.3.3
tar xzvf apache_1.3.29.tar.gz
tar xzvf php-4.3.3.tar.gz
cd apache_1.3.29
./configure
cd ../php-4.3.3
./configure --prefix=/home/ilashman/local/php-4.3.3 --with-apache=../apache_1.3.29
make -j 4
make install
cd ../apache_1.3.29
./configure --prefix=/home/ilashman/local/apache_1.3.29 --activate-module=src/modules/php4/libphp4.a
make -j 4
make install
cd /home/ilashman/local/src/xdebug-1.3.0
/home/ilashman/local/php-4.3.3/bin/phpize
./configure --enable-xdebug --with-php-config=/home/ilashman/local/php-4.3.3/bin/php-config
make
/home/ilashman/local/php-4.3.3/lib
vi php.ini
-----------
zend_extension="/home/ilashman/local/src/xdebug-1.3.0/modules/xdebug.so"
-----------
cd /home/ilashman/local/apache_1.3.29/bin/
./apachectl start
------------
http://ecoli.neowiz.com:8080/~ilashman/test.php
------------
xdebug
xdebug support enabled
Version 1.3.1dev
Stacktraces support enabled
Function nesting protection support enabled
Directive Local Value Master Value
xdebug.auto_profile Off Off
xdebug.auto_profile_mode 0 0
xdebug.auto_trace Off Off
xdebug.collect_params Off Off
xdebug.default_enable On On
xdebug.dump.COOKIE no value no value
xdebug.dump.ENV no value no value
xdebug.dump.FILES no value no value
xdebug.dump.GET no value no value
xdebug.dump.POST no value no value
xdebug.dump.REQUEST no value no value
xdebug.dump.SERVER no value no value
xdebug.dump.SESSION no value no value
xdebug.dump_once On On
xdebug.dump_undefined Off Off
xdebug.manual_url http://www.php.net http://www.php.net
xdebug.max_nesting_level 64 64
xdebug.output_dir /tmp /tmp
xdebug.remote_enable Off Off
xdebug.remote_handler gdb gdb
xdebug.remote_host localhost localhost
xdebug.remote_mode req req
xdebug.remote_port 17869 17869
----------------
댓글 없음:
댓글 쓰기