I have just recently started android development. I'm actually building a Web application that runs off an Android WebView. So, I'd like to know if there is any way to debug the web application (js,css,html) from the PC via the ADB or anything. I Googled it and got options but none have an extensive debugging facility like firebug. So, any ideas would be greatly appreciated. Thanks in advance.
我剛剛開始進行android開發。我實際上正在構建一個運行Android WebView的Web應用程序。所以,我想知道是否有任何方法可以通過ADB或其他方式從PC調試Web應用程序(js,css,html)。我用Google搜索並獲得了選項,但沒有一個像firebug那樣有廣泛的調試工具。所以,任何想法將不勝感激。提前致謝。
0
Since Android 4.2 (if i'm not mistaking the version) you can:
從Android 4.2開始(如果我沒有誤解版本)你可以:
chrome://inspect
on your PC in Google Chrome, you should see your device and the pages that are open on it. This is how i debug my app on a Nexus 7 tablet. If your device is running an older version of Android, there's little you can do apart from console.log
's and tediously finding them through an adb logcat
.
這是我在Nexus 7平板電腦上調試我的應用程序的方式。如果您的設備運行的是舊版本的Android,除了console.log之外幾乎沒有什么可以做的,並且通過adb logcat繁瑣地找到它們。
本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2013/09/16/724e86606db5449df9ae9be5189efe74.html。