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/