PHP +xdebug+ eclipse 调试
准备环境 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 ,打开配置界面
,按照圈红处配置
,点击debug , 开始php的debuging......