Home > Mobile > How AndroidStudio step debugging JS
How AndroidStudio step debugging JS
Time:10-04
Company set in the webview development, the absence of the front, I want to write their own js and front end, I'm going to write some more complex business in js I hope I can like Java step debugging, could you tell me how to do this?
CodePudding user response:
If (Build) VERSION) SDK_INT & gt;=Build. VERSION_CODES. KITKAT) { If (0!=(getApplicationInfo (). The flags & amp;=ApplicationInfo. FLAG_DEBUGGABLE)) { WebView. SetWebContentsDebuggingEnabled (true); } }
Add the code above the WebView, Allow remote debugging JS