无法调试PHP服务器端从我的安卓应用程序


Unable to debug on the PHP Server Side from my Android App

使用KSOAP2调用php web服务的android应用程序。Php WebService使用nuSOAP接收请求并将响应发送回应用程序。-

经过一番努力,终于能够为eclipse安装xDebug并使其工作。我的意思是-我选择php文件并选择"Debug As",IDE (Eclipse)进入Debug视角-到目前为止一切顺利。

我遇到的问题是这样的。从android应用程序中,当对webservice(第3行)进行调用时,它不会将我的php页面放入调试视图中供我浏览。我错过了什么?在调试模式下运行android应用程序之前,我确保在调试页面中运行php页面,并在第一行设置断点。任何帮助/指导都将非常感谢。

//this is the actual part that will call the webservice
1. HttpTransportSE client = new HttpTransportSE(webServiceURL);
2. SOAP_ACTION = getNAMESPACE()+getMETHODNAME();
3. client.call(SOAP_ACTION, envelope);

好的,对于那些在寻找答案的人:

如果在请求中指定,Xdebug通常设置为启动调试。你的应用正在处理请求,所以它不会触发。设置xdebug。Remote_autostart =1跳过这个要求。

http://forums.devshed.com/php -发展- 5/unable -调试-服务器- andriod - app - 962693. - html

相关文章: