search
Homephp教程php手册Eclipse配置php5.5的xdebug调试功能

Eclipse配置php5.5的xdebug调试功能

Jun 06, 2016 pm 07:47 PM
eclipsexdebugFunctiondebugConfiguration

首先,是php.ini文件的配置。下载xdebug扩展文件(www. xdebug .com,我测试用的是wamp平台,已经配置了xdebug) ,并在php.ini配置文件中添加以下内容: zend_extension = "c:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11.dll" [xdebug] ;

首先,是php.ini文件的配置。下载xdebug扩展文件(www.xdebug.com,我测试用的是wamp平台,已经配置了xdebug)
,并在php.ini配置文件中添加以下内容:

zend_extension = "c:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11.dll"
[xdebug]
;开启远程调试
xdebug.remote_enable = 1
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "c:/wamp/tmp"
xdebug.show_local_vars=0

;开启自动跟踪
xdebug.auto_trace = 1
;开启异常跟踪
xdebug.show_exception_trace = 1
;开启异常跟踪
xdebug.remote_autostart = 1
;收集变量
xdebug.collect_vars = 1
;收集参数
xdebug.collect_params = 1
;trace输出路径
xdebug.trace_output_dir="C:/xdebug"
;以下三个分别是主机、端口、句柄
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"

保存文件后,查看phpifo()信息

Eclipse配置php5.5的xdebug调试功能

Eclipse配置php5.5的xdebug调试功能



其次,在配置Eclipse。打开“窗口/首选项”面板

Eclipse配置php5.5的xdebug调试功能

上面选项是我添加好的,其参数配置如下:

Eclipse配置php5.5的xdebug调试功能


然后,配置debug选项:

Eclipse配置php5.5的xdebug调试功能


PHP Server那个选项应该知道怎么配置吧,只是服务器访问的配置,很简单,就给阅者留点思考的余地吧!!
保存首选项配置后,点工具栏的调试,可以看效果了......

 

制作人:飞虎                                           无兄弟不编程!
=====================================================================================
欢迎加QQ群进行更多交流:305397511     专注于php、mysql、jquery以及开源框架

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Will R.E.P.O. Have Crossplay?
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)