Php5.3 does not support Zend debugger. Install the xdebug debugging tool.

Source: Internet
Author: User

Install xdebug

Note: When downloading the xdebug extension, pay attention to the correspondence between the xdebug version and the PHP version, otherwise there will be unnecessary trouble!

1. download To xdebug official website, http://www.xdebug.org/download.php, as long as the installation is php5.3 version, and use Apache server, download is php_xdebug-2.1.0-5.3-vc6.dll or php_xdebug-2.1.1-5.3-vc6-nts.dll two versions, these two versions are based on the PHP version type you have installed. Php_xdebug-2.1.0-5.3-vc6.dll this is thread safe (thread-safe) version, while php_xdebug-2.1.1-5.3-vc6-nts.dll is NOT thread safe (non-thread-safe) version. Currently, PHP has many thread-safe versions.

2. rename it php_xdebug.dll and copy it to the C: \ php5.3 \ ext directory.

3. Change the php. ini file:

Add the following content to the end of the file.

[Xdebug]
Zend_extension = c: \ php5.3 \ ext \ php_xdebug.dll
Xdebug. profiler_enable = on
Xdebug. auto_trace = on
Xdebug. collect_params = on
Xdebug. collect_return = on
Xdebug. show_exception_trace = on
Xdebug. remote_autostart = on
Xdebug. remote_enable = on
Xdebug. collect_vars = on

Restart Apache.

 

 

 

Note: The first sentence may be changed according to the actual situation. If xdebug is not visible in phpinfo (), try

Change zend_extension = c: \ PHP \ ext \ php_xdebug.dll

Zend_extension_ts = c: \ PHP \ ext \ php_xdebug.dll

However, I tried

Change zend_extension = c: \ PHP \ ext \ php_xdebug.dll

Zend_extension_ts = c: \ PHP \ ext \ php_xdebug.dll

Instead, it is not loaded successfully.

Previously, I didn't quite understand what it meant. Today I want to understand the relationship between the thread and the non-thread.

Use Apache to open your phpinfo () and view the slice content, which indicates that your xdebug is successfully loaded.

 

Reprinted: http://blog.163.com/qiuxinke2006@126/blog/static/24885580201152102335144/
 

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.