[TIMOB-18066] Support remote debugging / inspecting of Android webviews
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-04-07T21:00:21.000+0000 |
Affected Version/s | Release 5.2.0 |
Fix Version/s | Release 5.3.0 |
Components | Android |
Labels | android, debugging, webview |
Reporter | Timan Rebel |
Assignee | Hans Knöchel |
Created | 2014-11-18T13:20:34.000+0000 |
Updated | 2016-05-18T23:00:55.000+0000 |
Description
Android supports the ability to inspect and debug webviews, just like iOS. On Android you have to enable it however by setting
setWebContentsDebuggingEnabled
to true.
http://developer.android.com/reference/android/webkit/WebView.html#setWebContentsDebuggingEnabled(boolean)
Attachments
File | Date | Size |
---|---|---|
crash.rtf | 2016-04-24T08:44:43.000+0000 | 5129 |
PR on Master: https://github.com/appcelerator/titanium_mobile/pull/6365
Please add support for this option -- using the inspector is invaluable in debugging apps that make heavy use of webviews!
We use a web view for portions of our app and would love to see this feature added! Thank You.
Updated PR with corrected indentation: PR (master): https://github.com/appcelerator/titanium_mobile/pull/7920 PR (5_3_X): https://github.com/appcelerator/titanium_mobile/pull/7922
PRs merged
Verified the fix. For remote debugging/inspecting android webviews the
debuggable
flag should se totrue
in the tiapp.xml:Webviews can be remote debugged/inspected successfully using chrome. Closing. Environment: Appc Studio : 4.6.0.201605180604 Ti SDK : 5.3.0.v20160517124218 Ti CLI : 5.0.8 Alloy : 1.8.7 MAC El Capitan : 10.11.4 Appc NPM : 4.2.5-5 Appc CLI : 5.3.0-45 Node: 4.2.2 Nexus 6 - Android 6.0.0 Nexus 5 - Android 5.1.1 Android Emulator - Android 6.0.0