问题
Possible Duplicate:
xampp 1.7.4 + winxp + eclipse
i am trying to configure a debugger with eclipse for php debugging, but it gets stuck at 57%. This is my ini file
[XDebug]
;; Only Zend OR (!) XDebug
; zend_extension_ts="C:xamppphpextphp_xdebug.dll"
; Modify the filename below to reflect the .dll version of your xdebug
zend_extension_ts="C:dev\php\ext\php_xdebug-2.1.1-5.2-vc6.dll"
xdebug.remote_enable=0
xdebug.remote_host=127.0.0.1 ; if debugging on remote server,
; put client IP here
xdebug.remote_port=9003
xdebug.remote_handler=dbgp
xdebug.profiler_enable=0
xdebug.profiler_output_dir="C:dev\php\tmp"
I have changed the port as 9003 as well in eclipse , but stil it gets stuck at 57% always
回答1:
You need to enable it at least:
xdebug.remote_enable=1 # instead of 0
Troubleshooting xdebug install
Check if the xdebug extension is installed
If phpinfo();
is not listing xdebug in the Configuration section that lists all installed extensions, then it is not installed. It is important to check this at first, because if the extension is not available, it can not be enabled. Always check this first to not look in the wrong place while trouble-shooting.
The following screen-shot shows how it looks like when it is installed:

If your phpinfo
does not list xdebug
this means that the extension is not properly loaded.
The xdebug website has an especially useful resource for windows (and other) installations called the custom installation instructions. You can copy and paste your phpinfo();
output into a text-box and it will give you which version/file to download and which php.ini
to edit. So you will get tailored instructions for your custom set-up.
This should enable you to successfully install the extension so that it can be configured.
来源:https://stackoverflow.com/questions/6423153/launching-xdebug-in-eclipse-stuck-at-57-how-to-trouble-shoot