Loading

Eclipse(PDT) + Xdebug

环境:

Windows Version: Windows 7 Enterprise SP1 64-bit

XAMPP Version: 1.8.1

Xdebug  使用 Xampp  自带

1 启用Xdebug

打开php.ini,打开相应选项

[XDebug]
zend_extension = "\xampp\php\ext\php_xdebug.dll"
;xdebug.profiler_append = 0
xdebug.profiler_enable = 1
;xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "\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.trace_output_dir = "\xampp\tmp"

2,重启Apache服务器

 

3, 查看 phpinfo  看是否配置好了 Xdebug

 

4,Eclipse  配置


5, 进行调试

打开 Eclipse ,新建立一个 PHP Project,我继续建立 xampp 的项目,打开 index.php 页面。选择 Eclipse
菜单里的 Run ->Run Configurations,设置一下:

 

 

posted @ 2012-10-30 21:45  .net's  阅读(399)  评论(0编辑  收藏  举报