• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Walkthrough (debug) server side php script for a call made by an App in Android Studio

 
Srivathsan Krishnamurthy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I have been using Eclipse as my primary IDE for development of Android APP and for php script. In this current set up I'm able to place a breakpoint in a line of code in the android app and see line by line what happens at the server side script in php before resuming next set of instructions in the Andriod App. I use KSOAP library to POST from the Android app to a PHP serverside Webservice; which return back data appropriately.

Now I'm being forced to move to Android Studio for development of the Android App. If I move can I still do what I have been doing before as explained above? Any pointers/assistance would be very much appreciated.

Thanks a ton in advance.
 
Brian Tkatch
Bartender
Posts: 567
25
Linux Notepad Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not know, but i will suggest.

Android Studio allows you to step through the Android code, line by line. You can use it to see what is sent to the server and what is returned. You can then go back to Eclipse and pass those values yourself while debugging the PHP script, should something be wrong there.
 
Srivathsan Krishnamurthy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Brian Tkatch wrote:I do not know, but i will suggest.

Android Studio allows you to step through the Android code, line by line. You can use it to see what is sent to the server and what is returned. You can then go back to Eclipse and pass those values yourself while debugging the PHP script, should something be wrong there.


Appreciate your response Brian. Debugging code that is related to the app in Android Studio is fine. Not a problem. I can see what is being sent and what has been received (on a happy path scenario). Let's assume I have a written a wrong query on the script that acts as a conduit between the app and the server ferrying data either side - In this scenario I will not get what I want to see in the app. So to see what exactly went wrong I need to walk through the code in the php script when the call is being made from the app.. The values to the script are automatically posted by the app.. So I dont have to pass them to the script. In this scenario how can I achieve the need to walk through the code in eclipse?
 
Brian Tkatch
Bartender
Posts: 567
25
Linux Notepad Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Srivathsan Krishnamurthy wrote:Appreciate your response Brian. Debugging code that is related to the app in Android Studio is fine. Not a problem. I can see what is being sent and what has been received (on a happy path scenario). Let's assume I have a written a wrong query on the script that acts as a conduit between the app and the server ferrying data either side - In this scenario I will not get what I want to see in the app. So to see what exactly went wrong I need to walk through the code in the php script when the call is being made from the app.. The values to the script are automatically posted by the app.. So I dont have to pass them to the script. In this scenario how can I achieve the need to walk through the code in eclipse?

I do not understand. If you know the values, why can you not just debug the PHP code in Eclipse while passing the values manually?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic