【问题标题】:XDebug doesn't work with proxiesXDebug 不适用于代理
【发布时间】:2012-01-08 18:22:08
【问题描述】:

我使用 xampp 进行 php 开发,使用 eclipse indigo 和 PDT 3.0 进行调试。

我将 curl 函数用于我的网络操作,其中我可以使用

指定我的代理设置
curl_setopt($ch, CURLOPT_PROXY, "host:port");

我正在尝试使用 php 的get_meta_tags() 来获取所有元标记,但代理拒绝连接。我不知道该怎么做。我已将 XDebug 配置为在没有代理的情况下运行。我只是启用了 DBGp 代理支持 并以 host:port 格式输入代理地址。我在我的 php.ini 文件中使用现有的 IDE 密钥,即 ECLIPSE_DBGP

当我启动调试模式时,它永远不会完成启动。它停留在 24%。一旦我删除了禁用的 DBGp Proxy Support ,我的调试器就启动了。

我的 XDebug 的 php.ini 配置如下:

[XDebug]
zend_extension = "E:\others\xampp-win32-1.7.7-VC9\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=1
xdebug.remote_host="localhost"
xdebug.remote_port=9876
xdebug.remote_handler="dbgp"
xdebug.remote_mode="req"
xdebug.idekey = "ECLIPSE_DBGP"

我错过了什么吗?我需要指定更多内容吗?在 Eclipse 或 .ini 文件中? 请告诉我。

谢谢, 阿迪提亚。

【问题讨论】:

    标签: php eclipse debugging xdebug eclipse-pdt


    【解决方案1】:

    调试代理设置用于特定的“xDebug 代理”程序,而不是用于通过 Internet 使用的网络类型代理。

    为了使用它,你需要设置类似 pydbgpproxy 的东西

    查看此链接http://derickrethans.nl/debugging-with-multiple-users.html

    【讨论】:

      【解决方案2】:

      我找到了解决方案。看起来默认用于调试的端口 9000 正在使用中。我更改了端口,它运行良好。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2011-03-04
        • 2013-07-30
        • 2012-08-06
        • 2017-03-28
        • 2019-01-23
        • 2016-01-05
        • 2016-12-10
        • 2017-03-31
        相关资源
        最近更新 更多