Skip to content

WebView.setWebContentsDebuggingEnabled #1240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
primaeval opened this issue Feb 23, 2018 · 2 comments
Closed

WebView.setWebContentsDebuggingEnabled #1240

primaeval opened this issue Feb 23, 2018 · 2 comments

Comments

@primaeval
Copy link

I'm trying to debug a p4a webview Flask app. If you set WebView.setWebContentsDebuggingEnabled(true) somewhere in the code it is supposed to enable Chrome browser debugging.
Here is an example of how it should work:
https://developers.google.com/web/tools/chrome-devtools/remote-debugging/webviews
and a code example of how to enable it
https://github.com/nshmura/android-rss-reader/blob/4a22cc090f108c6535aca4ddad5a994ce7649cea/app/src/main/java/com/nshmura/feed/presentation/util/WebViewUtil.java

I have tried adding it in a couple of places such as /build/src/org/kivy/android/PythonService.java but nothing appears in Chrome chrome://inspect

@primaeval
Copy link
Author

I've got a workaround so far by opening a Chrome Browser on the android device at http://localhost:5000 and then opening Chrome on my local machine and going to chrome://inspect to remotely link to the device Chrome tab.

@inclement
Copy link
Member

Closing as not an active issue, although it's convenient to know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants