用于eclipse php调试的php.ini文件

时间:2013-03-30 05:34:00

标签: debugging xampp php-ini

我一直在高低搜索,仍然无法使用'eclipse for PHP Developers 3.0.2'进行调试。

目前eclipse只是悬挂在57%,因为'启动:等待XDebug会话。但是当eclipse挂起时,php文件在外部浏览器中打开并运行???

我正在使用'XAMPP 3.1.0.3.1.0'作为Web服务器,并在php ext文件夹中有相应的'php_xdebug.dll'文件。

我已尝试过其他论坛的大量设置,但仍然没有运气,这是我的X.bb的php.ini文件配置:

[XDebug]
zend_extension = "C:\xampp\php\ext\php_xdebug.dllstack"
;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 = 0n
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
;xdebug.trace_output_dir = "\xampp\tmp"

任何人都知道我需要改变什么?

1 个答案:

答案 0 :(得分:0)

似乎配置设置不正确,使用的好工具是http://xdebug.org/wizard.php

下载新版本,添加了php / ext并更新了php.ini:

[XDebug]
zend_extension = \xampp\php\ext\php_xdebug-2.2.2-5.4-vc9.dll
;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 = 0
;xdebug.remote_handler = "dbgp"
;xdebug.remote_host = "127.0.0.1"
;xdebug.trace_output_dir = "\xampp\tmp"