Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug a website on Android?

I don't have an Android phone or tablet, and it seems that on some Android devices using stock browser my website is stuck for half a minute until it loads.

I've been testing with various emulators found online like BrowserStack, etc. The browser is just stuck for a while. That's not the case for iPhone or desktop.

How can I debug this issue? How can I see a developer console or errors or figure out what's causing the slowness?

like image 912
Ahmed Avatar asked Aug 20 '13 22:08

Ahmed


People also ask

How do you debug a website?

If you want to debug it, you should press F12 on Chrome to open the developer mode. You can see that the JS code of the current page is under the Source menu, you can set a breakpoint directly at the beginning of the script. Then you can click on the UI button or menu to start debugging(both js and backend activity ).

How do I debug Chrome on Android?

Enable USB Debugging on Android DeviceTurn on the "Developer Options" toggle. On some devices, the "Developer Options" is another menu option. 3. Under the "Developer Options" menu, enable "USB Debugging".

Can I use Chrome developer tools on Android?

Yes, we have integrated Chrome DevTools on select browsers on real devices (iOS & Android) in Live. To access the same for debugging your website when testing on mobile devices, click on the “DevTools” button on the in-session toolbar.


1 Answers

You can use Remote Debugging with Chrome for Android if the problem happens on this browser (which is the default browser on recent Android versions)

How to use Remote Debugging with the emulator


If the issue only occurs with the legacy Android browser, you might be able to get some information by monitoring the http requests with Fiddler

How to use Fiddler with Android

like image 187
nicopico Avatar answered Oct 02 '22 21:10

nicopico