【发布时间】:2011-03-04 23:43:50
【问题描述】:
我正在使用(或无论如何尝试)将捆绑的 XDebug 与 XAMPP 1.7.2 一起使用。它与 Apache 2.2.12、PHP 5.3.0、XDebug 2.0.5 和 Zend 捆绑在一起(不确定版本)
这是一个全新的 XAMPP 安装,我添加到 php.ini(位于 xampp/php/php.ini)的唯一内容是:
zend_extension_ts = "C:\xampp\php\extensions\php_xdebug.dll"
[xdebug]
xdebug.auto_trace = 1
xdebug.collect_includes = 1
xdebug.collect_params = 1
xdebug.collect_return = 1
xdebug.default_enable = 1
xdebug.extended_info = 1
xdebug.show_local_vars = 0
xdebug.show_mem_delta = 1
xdebug.trace_format = 1
xdebug.trace_options = 0
xdebug.trace_output_dir ="C:\xampp\tmp"
xdebug.remote_enable=1
xdebug.remote_mode="req"
xdebug.remote_host=127.0.0.1
xdebug.remote_port=17869
xdebug.idekey=<idekey>
xdebug.remote_handler="gdb"
xdebug.auto_profile = 1
xdebug.auto_profile_mode = 2
xdebug.output_dir = "C:\xampp\tmp"
xdebug.dump.SERVER = REMOTE_ADDR,REQUEST_METHOD
(这只是我尝试过的许多不同配置之一)
但尽我所能,XDebug 将无法连接到任何东西。我已经尝试过 Netbeans 和 Debugclient.exe(在 xampp/php/debugclient.exe 中)。他们都只是坐等永远。
如何让 XDebug 工作?
【问题讨论】:
-
您可以使用wireshark查看尝试连接时网络上发生的情况,您可以激活记录连接的xdebug日志。希望这会有所帮助
-
我记得 Netbeans 使用的默认端口是 9000
-
将端口改为9000并不能解决问题
标签: php apache zend-framework xampp xdebug