The first step, if you are not sure which xdebug.dll to download, please output phpinfo (), the page all the information, copied to this site, http://xdebug.org/wizard.php according to the information given to download the corresponding DLL.
The second step is to drop the downloaded DLL into the ext extension directory in the PHP directory.
In the third step, 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 set too small , the function has recursive call itself too many times will be reported over the maximum number of nested errors xdebug.remote_enable=true ; Xdebug allow the remote IDE to connect xdebug.remote_host=127.0.0.1 ; allow the IP address of the connected Zend Studio xdebug.remote_port=9000 ; reverse connection Zend The port XDEBUG.REMOTE_HANDLER=DBGP used by Studio ; application-layer communication protocol for Zend Studio remote debugging
When configuring the extension DLL to distinguish between the TS or which version, especially this line zend_extension= "E:\www\php54\ext\php_xdebug.dll", Most can see in the phpinfo output xdebug but not in the development tool, it may be the reason for this, restart your Web server.
Next Configure the development tool, I use Eclipse, the operation is as follows:
Preferences-php Window
First select PHP executables-> Add, a configuration box will pop up, such as:
Name can be taken casually.
Executables path is php.exe in the PHP directory.
PHP INI is a php.ini in the PHP directory
PHP Debugger Mode Selection Xdebug
Save.
Next, in debug, select the appropriate configuration:
The last step, reboot.
http://www.bkjia.com/PHPjc/440245.html www.bkjia.com true http://www.bkjia.com/PHPjc/440245.html techarticle The first step, if you are not sure which xdebug.dll to download, please output phpinfo (), the page all the information, copied to this site, http://xdebug.org/wizard.php follow the letter given ...