Xdebug Installation in PHP

Source: Internet
Author: User

Experimental environment CentOS


Phpinfo ()

Show

PHP Version 5.3.3

Go to official website http://www.xdebug.org/corresponding download

xdebug-2.2.5






Unzip the Xdebug package under Linux.

1, enter Xdebug, in this directory first run PHP directory under the bin/phpize;


My machine, run Phpize error

[Email protected] xdebug-2.2.5]# Phpize-bash:phpize:command not found



Installing Phpize

Phpize is part of Php-devel's content.

Yum install Php-devel-y[[email protected] xdebug-2.2.5]# phpizeconfiguring for:php Api version:20090626zend Modu Le API no:20090626zend Extension API no:220090626


2. In operation

[Email protected] xdebug-2.2.5]#./configure--enable-xdebug [[email protected] xdebug-2.2.5] #make

Well, the compilation is over.

[email protected] xdebug-2.2.5]# ll modules/total 660-rw-r--r--. 1 root root 923 Oct 06:19 xdebug.la-rwxr-xr-x. 1 root root 668885 Oct 06:19 xdebug.so



This is the time to generate the directory under the Xdebug directory modules, the directory has xdebug.so files, the xdebug.so copy to the directory you want to put.


3. Edit the php.ini file


Add the following PHP configuration file

Zend_extension = "/Path/xdebug.so"

As follows:

zend_extension= "/home/samba/test/xdebug-2.2.5/modules/xdebug.so" xdebug.profiler_enable = onxdebug.default_enable = onxdebug.trace_output_dir= "/tmp/xdebug" xdebug.trace_output_name = trace.%c.%pxdebug.profiler_output_dir= "/tmp/ Xdebug "Xdebug.profiler_output_name=" cachegrind.out.%s "



[[email protected] xdebug-2.2.5] #service httpd restart


Phpinfo ()

Show


Makes use of the Zend Scripting Language Engine:

Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

With Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/92/wKioL1YiUsbgjHbWAADITac4rsk403.jpg "title=" capture. PNG "alt=" Wkiol1yiusbgjhbwaaditac4rsk403.jpg "/>



Or

[Email protected]t etc]# php-m |grep debugxdebugxdebug






This article is from the "Ab_linuxer Learning Vegetable Garden" blog, please be sure to keep this source http://ablinuxer.blog.51cto.com/4750670/1703875

Xdebug Installation in PHP

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.