Search code examples
javascriptandroidandroid-studioandroid-virtual-devicemobile-devices

Debuging website in native android browser run in AVD(android studio)


I have to debug some problems on website I recently created that occur only in native android browser on some tablets. I don't have access to physical device so I decided to to install Android Studio and created tablet AVD(android virtual device). Process run smoothly and now I can open native browser in virtual device and check my website.

I can see the same errors as those reported on tablets(that's great) but I cannot figure out how to run any kind of devtools in native browser. Even access to console output would be enough.

I'm running android studio on Ubuntu 18.x LTS, but I guess my question is not platform specific.

I would prefer any solution that can be run on virtual device(like some additional app that acts as debugger), even if it would give me only console output, over more sophisticated ones that require more complicated configuration.

But, honestly, I would really appreciate any kind of help.


Solution

  • you have to use the Chrome debug bridge; accessible through chrome://inspect on the desktop browser... connected devices will show up there, as long as USB debugging is enabled; that should work with an emulator, as well.