google / accompanist

A collection of extension libraries for Jetpack Compose
https://google.github.io/accompanist
Apache License 2.0
7.38k stars 596 forks source link

[WebView] how to enable debug mode for accompanist webview #1662

Closed maanuanubhav999 closed 1 year ago

maanuanubhav999 commented 1 year ago

Description Due to a use case I want to debug the web-view, which could easily be accomplished using WebView.setWebContentsDebuggingEnabled(true) for general web-view but I am unable to figure out how to do for accompanist webview

Steps to reproduce

  1. write code for web-view initlisation
  2. try to debug it

Expected behavior we should easily be able to debug it

Additional context

bentrengrove commented 1 year ago

The same code should work for the Accompanist WebView. The easiest spot to add it would be in your Activity onCreate.

maanuanubhav999 commented 1 year ago

Thanks a lot @bentrengrove I was placing it on the composable function itself.