Linux安装xdebug.(Debian,Ubuntu)
Linux安装xdebug.(Debian,Ubuntu)
1: 首先还是下载
猛击这里下载xdebug-2.1.2.tgz
我下载到downloads目录. 在/home/yourName/Downloads/这里.
2:解压编译
cd 进去Downloads目录后 依次运行下面的命令
- tar -xvzf xdebug-2.1.2.tgz
- cd xdebug-2.1.2
- phpize
- sudo apt-get install php5-dev
- ./configure
- make
- make install
- See any operating system documentation about shared libraries for
- more information, such as the ld(1) and ld.so(8) manual pages.
- ----------------------------------------------------------------------
- Installing shared extensions: /usr/lib/php5/20090626+lfs/
- +----------------------------------------------------------------------+
- | |
- | INSTALLATION INSTRUCTIONS |
- | ========================= |
- | |
- | See http://xdebug.org/install.php#configure-php for instructions |
- | on how to enable Xdebug for PHP. |
- | |
- | Documentation is available online as well: |
- | - A list of all settings: http://xdebug.org/docs-settings.php |
- | - A list of all functions: http://xdebug.org/docs-functions.php |
- | - Profiling instructions: http://xdebug.org/docs-profiling2.php |
- | - Remote debugging: http://xdebug.org/docs-debugger.php |
- | |
- | |
- | NOTE: Please disregard the message |
- | You should add "extension=xdebug.so" to php.ini |
- | that is emitted by the PECL installer. This does not work for |
- | Xdebug. |
- | |
- +----------------------------------------------------------------------+
- su
- ********
- cp modules/xdebug.so /usr/lib/php5/20090626+lfs
3:编辑php.ini 终端
- gvim /etc/php5/apache5/php.ini
- zend_extension = /usr/lib/php5/20090626+lfs/xdebug.so
- sudo /etc/init.d/apache2 restart
在最开头有zend那里出现
- This program makes use of the Zend Scripting Language Engine:
- Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
- with Xdebug v2.1.2, Copyright (c) 2002-2011, by Derick Rethans
|
评论暂时关闭