Home > php教程 > php手册 > PHP +xdebug+ eclipse 调试

PHP +xdebug+ eclipse 调试

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 19:45:03
Original
1187 people have browsed it

准备环境 XAMPP1.8.2 [PHP 5.4.16]; Xdebugv2.2.3; Eclipse for PHPDevelopers (下载地址http://archive.eclipse.org/technology/epp/downloads/release/galileo/SR2/eclipse-php-galileo-SR2-win32.zip) 配置 1在php.ini搜[XDebug] ,将原来的配置信息 ;xdeb


准备环境

 XAMPP1.8.2 [PHP 5.4.16];

 Xdebug v2.2.3;

 Eclipse for PHPDevelopers

(下载地址 http://archive.eclipse.org/technology/epp/downloads/release/galileo/SR2/eclipse-php-galileo-SR2-win32.zip)

 

 

配置

 

1在php.ini 搜 [XDebug] ,将原来的配置信息

;xdebug.remote_enable=1
;xdebug.remote_host= "localhost"
;xdebug.remote_port= 9000
;xdebug.remote_handler= "dbgp"
;zend_extension= "C:\xampp\php\xdebug\php_xdebug-2.1.0-5.2-vc6.dll"

替换成 (根据自己的环境适当调整)


zend_extension = "C:\xampp\php\ext\php_xdebug-2.2.3-5.4-vc9.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.remote_port=9000
xdebug.trace_output_dir = "C:\xampp\tmp"


2重启apache


3进入eclipse, 选中要debug的文件,右键 debug as ->debugconfigrations ,打开配置界面 

,按照圈红处配置 

 PHP +xdebug+ eclipse 调试

,点击debug , 开始php的debuging......PHP +xdebug+ eclipse 调试

  

 


  

 

Related labels:
Statement of this Website
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template