Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
176
rated 0 times [  178] [ 2]  / answers: 1 / hits: 32829  / 10 Years ago, tue, september 9, 2014, 12:00:00

I am creating a purely browser based app - HTML and JavaScript.



I do not have an Android IDE installed (nor one for iOS) - and would prefer not to have to install one and perform remote debugging.



Developing on my PC, I use the Chrome browser and the developer tools to view the JavaScript console in order to debug.



How can I do that on an Android tablet (or, later, iOS)? I prefer a purely browser based solution, but could accept an Android/iOS based app.


More From » android

 Answers
9

For Android you can use remote debugging through chrome as described here



I'll summarize/rewrite the steps (for browser based debugging) here in case the link ever goes down.



Requirements:




  • For browser tabs: Android 4.0+ and Chrome for Android

  • A USB cable to plug in your Android device

  • Chrome 32 or later installed on your development machine



Set up:




  • Enable USB debugging on your device.

  • Navigate to chrome://inspect/#devices on your desktop Chrome browser. (Alternatively, to get to the same screen, you can select Chrome menu > Tools > Inspect Devices)

  • After connecting, you may see an alert on the device requesting permission for USB debugging from your computer. Tap OK

  • Chrome should now display the connected device

  • Open up chrome on your Android device and navigate to the page you want to debug/inspect. The page should show up on your desktop browser and you should be able to inspect it.



If for some reason you have an older version of chrome and cannot upgrade. There is a plugin that you can install to accomplish the same thing.


[#69515] Sunday, September 7, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
domeniccolti

Total Points: 276
Total Questions: 98
Total Answers: 93

Location: India
Member since Fri, May 13, 2022
2 Years ago
domeniccolti questions
Mon, Oct 18, 21, 00:00, 3 Years ago
Thu, Oct 14, 21, 00:00, 3 Years ago
Thu, Jul 15, 21, 00:00, 3 Years ago
Sat, Oct 24, 20, 00:00, 4 Years ago
Thu, Sep 3, 20, 00:00, 4 Years ago
;