Xdebug is an open source PHP program debugger (a debug tool) that can be used to track, debug, and analyze the health of PHP programs. In daily development, we will use functions such as Print_r () Var_dump () to debug, but after all xdebug more professional, simple introduction under the Ubuntu-14.04 Xdebug-2.2.5 installation.
//Hai HainanPHP Blog http://blog.phpha.com[Email protected]:~$ wget http://www.xdebug.org/files/xdebug-2.2.5.tgz[Email protected]:~$ tar-zxf xdebug-2.2.5.Tgz[email protected]: ~$ CD xdebug-2.2.5/[email protected]: ~/xdebug-2.2.5$/usr/local/php/bin/phpizeconfiguring for:PHP Api Version: 20121113Zend Module Api No: 20121212Zend Extension Api No: 220121212[email protected]: ~/xdebug-2.2.5$./configure--enable-xdebug--with-php-config=/usr/local/php/bin/php-Config[email protected]: ~/xdebug-2.2.5$ sudo make[email protected]: ~/xdebug-2.2.5$ sudo make install//Hai HainanPHP Blog http://blog.phpha.comInstalling Shared extensions:/usr/local/php/lib/php/extensions/no-debug-zts-20121212/+-------------------------- --------------------------------------------+ | | | Installation Instructions | | ========================= | | | | See http://xdebug.org/install.php#configure-php for instructions || About to enable Xdebug forPhp. | | | | Documentation is available online asWell: | | -AListOf all Settings:http://xdebug.org/docs-settings.php || -AListOf 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's emitted by the PECL installer. This does isn't work for| | Xdebug. | | | +----------------------------------------------------------------------+//tianya PHP Blog http://blog.phpha.com
The above has successfully installed the Xdebug extension, and then we need to make some changes to the php.ini configuration file.
//Hai HainanPHP Blog http://blog.phpha.com[Email protected]:~$ sudo vim/usr/local/php/etc/php.INI//Add the following configuration options, and see the official notes for more configuration options[Xdebug]zend_extension=/usr/local/php/lib/php/extensions/no-debug-zts-20121212/xdebug.Soxdebug. Auto_trace =Onxdebug. default_enable =Onxdebug. Auto_profile =Onxdebug. Collect_params =Onxdebug. Collect_return =Onxdebug. profiler_enable =Onxdebug. Remote_host =Localhostxdebug. Remote_port = 9000Xdebug. Remote_handler =Dbgpxdebug. Trace_output_dir = "/usr/local/php/xdebug/"Xdebug. Profiler_output_dir = "/usr/local/php/xdebug/"//Hai HainanPHP Blog http://blog.phpha.com//restart Apache[Email protected]:~$ sudo service Apache restart
Fix the installation finished, happy ing, if you solve your problem, just comment on the next chant
Ubuntu-16.04 installation Xdebug-2.2.5 and related introduction