2014-12-22 186 views
2

我得到了xdebug,mamp和php风暴来一起工作,现在当我访问我的机器上的url时localhost:8888/index.php PHP风暴命中一个断点,一切都很好!Android xdebug phpstorm

现在,当我从android应用程序向index.php提交post请求时,我希望php风暴会再次触发断点,但它不会:/ ..我想一旦调试器成功配置,它将调试所有传入的连接。可能不会。

我需要安装什么来使php风暴皮卡android发布请求?

我正在使用android studio。

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或任何其他连接的事情..

回答

4

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

您有几种选择:?

  1. ,无论你想打破
  2. 从应用程序中使用的xdebug_break()方法在PHP代码中,追加XDEBUG_SESSION_START =会话名称所有的服务器请求。
  3. 使用remote_autostart指令(相当密集的),你可以把它放在一个.htacces,如: php_value xdebug.remote_autostart 1或在php.ini。更多详情here