The first step, if you are not sure which xdebug. dll to download, please output phpinfo (), copy all the information on the page, copy to this site, the http://xdebug.org/wizard.php according to the given information to download the corresponding dll.
Step 2: Drop the downloaded dll to the ext extension directory under the php Directory.
Step 3: Open the php. ini file and copy the following code to the last line.
[Xdebug]; extension = php_xdebug.dllzend_extension = "E: \ www \ php54 \ ext \ php_xdebug.dll"; extension = "E: \ www \ php54 \ ext \ php_xdebug.dll" xdebug. profiler_enable = onxdebug. trace_output_dir = "E: \ www \ xdebug"; xdebug data file directory xdebug. profiler_output_dir = "E: \ www \ xdebug"; xdebug data file directory xdebug. max_nesting_level = 10000; if it is too small, when the number of recursive calls in the function is too many, the system reports an error that exceeds the maximum number of embedded sets. remote_enable = true; Xdebug allows remote IDE connection to xdebug. remote_host = 127.0.0.1; the IP address of zend studio that can be connected xdebug. remote_port = 9000; reversely connects to the port xdebug used by zend studio. remote_handler = dbgp; application-layer communication protocol used for remote debugging of zend studio
When you configure the extension dll, you must identify the version of ts, especially the line zend_extension = "E: \ www \ php54 \ ext \ php_xdebug.dll ", most users can see xdebug in phpinfo output but cannot use it in development tools. This may be the reason for this. Restart your web server.
Next, configure the development tool. I use Eclipse and perform the following operations:
Window-> preference-PHP
Select PHP Executables-> add. A Configuration box is displayed, for example:
Name can be retrieved at will.
Executables pathis php.exe in the PHP Directory.
PHP ini is the php. ini file in the php Directory.
Select XDebug in PHP debugger Mode
Save.
Then, in Debug, select the corresponding Configuration ,:
In the last step, restart.