Home  >  Article  >  Backend Development  >  Configure Eclipse php xdebug_PHP tutorial

Configure Eclipse php xdebug_PHP tutorial

WBOY
WBOYOriginal
2016-07-20 11:14:461071browse

The first step, if you are really not sure which xdebug.dll to download, please output phpinfo(), copy all the information in the page and throw it to this website, http://xdebug.org/wizard. php downloads the corresponding dll according to the information given.

The second step is to drop the downloaded dll into the ext extension directory under the php directory.

The third step is to open the php.ini file and copy the following code to the last line.

[Xdebug]
;extension=php_xdebug.dll
zend_extension= "E:\www\php54\ext\php_xdebug.dll"
;extension = "E:\www\php54\ext\php_xdebug.dll"
xdebug.profiler_enable=on
xdebug.trace_output_dir="E:\www\xdebug"       ;xdebug 的数据文件目录
xdebug.profiler_output_dir="E:\www\xdebug"    ;xdebug 的数据文件目录
xdebug.max_nesting_level = 10000              ;如果设得太小,函数中有递归调用自身次数太多时会报超过最大嵌套数错
xdebug.remote_enable=true                     ;Xdebug允许远程IDE连接
xdebug.remote_host=127.0.0.1                  ;允许连接的zend studio的IP地址
xdebug.remote_port=9000                       ;反向连接zend studio使用的端口
xdebug.remote_handler=dbgp                    ;用于zend studio远程调试的应用层通信协议

When configuring the extension dll, you must clearly distinguish which version the ts is, especially the line zend_extension= "E:wwwphp54extphp_xdebug.dll". Most of the time, xdebug can be seen in the phpinfo output but cannot be used in the development tools. It may be that The reason here is to restart your web server.

Next, configure the development tool. I use Eclipse. The operation is as follows:

Window->Preferences-PHP

First select PHP Executables-> add, a configuration box will pop up, as shown below:

Name can be chosen casually.

Executables path is php.exe in the php directory.

PHP ini is php.ini in the php directory

PHP debugger mode select XDebug

Save.

Next, in Debug, select the corresponding configuration, as shown in the figure:

The last step is to restart.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/440245.htmlTechArticleThe first step, if you are really not sure which xdebug.dll to download, please output phpinfo() and change the Copy all information and throw it into this website, http://xdebug.org/wizard.php according to the information given...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn