【问题标题】:xdebug-waiting for incoming connection with ide keyxdebug-等待带有 ide 键的传入连接
【发布时间】:2014-09-12 06:05:19
【问题描述】:

我正在使用 xDebug。但我无法调试整个项目。我可以调试起始 URL 页面断点。但是,当我越过线条时,它会显示登录页面,而当我提交登录页面时,我无法到达下一个断点。在变量窗口中,它显示“等待带有 ide 键的传入连接”。我为 xdebug 配置的 php.ini:

[XDebug]
    zend_extension="/usr/lib/php5/20121212+lfs/xdebug.so"
    xdebug.remote_enable=1
    xdebug.remote_port="9001"
    xdebug.profiler_enable=1
    xdebug.profiler_output_dir="home/tmp"

请帮忙。

【问题讨论】:

    标签: php xdebug


    【解决方案1】:

    也许你可以在 php.ini 中添加一行:

    xdebug.remote_connect_back=1
    

    我希望这种方法对您有所帮助。

    【讨论】:

      【解决方案2】:

      你应该设置 phpstorm 的 DBG 代理

      见:refer link

      【讨论】:

        【解决方案3】:

        因为 Xdebug 需要 cookie XDEBUG_SESSION 或 url XDEBUG_SESSION_START 中的查询字符串,并且该值是您的 Waiting for incoming connection with ide key 的值。

        您可能会在登录页面上错过这两个。

        参考:https://xdebug.org/docs/remote,搜索HTTP Debug Sessions

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2014-11-23
          相关资源
          最近更新 更多