【问题标题】:Android xdebug phpstormAndroid xdebug phpstorm
【发布时间】:2015-02-20 05:17:55
【问题描述】:

我让 xdebug、mamp 和 phpstorm 一起工作得很好,现在当我访问我机器上的 url ex localhost:8888/index.php phpstorm 遇到断点,一切都很好!

现在,当我从 android 应用程序向 index.php 提交 post 请求时,我希望 phpstorm 会再次遇到断点,但它没有:/ .. 我认为一旦成功配置调试器,它将调试所有传入的连接。猜不到。

我需要安装什么来制作 phpstormpick android 发布请求?

我正在使用安卓工作室。

php.ini 看起来像

[xdebug]
zend_extension="/Applications/MAMP/bin/php5.2/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp

它再次适用于网络!只是不确定如何使它支持 android 或任何其他连接..

【问题讨论】:

    标签: php android mamp xdebug


    【解决方案1】:

    您的请求中可能缺少 GET/POST 参数。

    你有几个选择:

    1. 在您的 php 代码中使用 xdebug_break() 方法,无论您想中断什么
    2. 在应用中,将 ?XDEBUG_SESSION_START=session_name 附加到您的所有服务器请求。
    3. 使用 remote_autostart 指令(相当密集)您可以将它放在 .htacces 中,例如: php_value xdebug.remote_autostart 1 或在 php.ini 中。更多详情here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-03-15
      • 2013-09-02
      • 2014-08-10
      • 2019-03-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多