Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
130
rated 0 times [  136] [ 6]  / answers: 1 / hits: 5258  / 8 Years ago, mon, september 5, 2016, 12:00:00

I have to debug an Android app into Android Studio; the app contains scripts written in Javascript. Is there a way to add breakpoints to line of codes written in Javascript?


More From » android

 Answers
12

  • Open chrome and go to DevTools ( Inspect Element),



  • click the Main Menu then select More tools > Remote devices.



  • open the Settings tab.



  • Make sure that the Discover USB devices checkbox is enabled.



  • Connect your Android device directly to your development machine
    using a USB cable. The first time you do this, you usually see that
    DevTools has detected an unknown device. If you see a green dot and
    the text Connected below the model name of your Android device, then
    DevTools has successfully established the connection to your device



  • In the Remote Devices tab, click the tab that matches your Android
    device model name and Click "Inspect"




check this link for debugging JavaScript on Android in details


https://developers.google.com/web/tools/chrome-devtools/remote-debugging/


[#26178] Friday, September 2, 2016, 8 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
alonso

Total Points: 747
Total Questions: 108
Total Answers: 105

Location: Mauritania
Member since Sun, Sep 25, 2022
2 Years ago
;