Skip to main content
Version: 6.x.x

Debugging WebViews

Debugging info

WebViews and some controllers have debugging info enabled by default when your flutter app is running in debug mode (based on the kDebugMode flutter constant value).

You can change the DebugLoggingSettings properties of the following static properties:

  • InAppWebView and HeadlessInAppWebView through WebView.debugLoggingSettings;
  • ChromeSafariBrowser.debugLoggingSettings;
  • InAppBrowser.debugLoggingSettings for InAppBrowser specific events, otherwise WebView.debugLoggingSettings;
  • FindInteractionController.debugLoggingSettings;
  • PullToRefreshController.debugLoggingSettings;
  • WebAuthenticationSession.debugLoggingSettings.

For example, to disable all WebView debugging info:

WebView.debugLoggingSettings.enabled = false;

Instead, to exclude debugging info of specific WebView events:


WebView.debugLoggingSettings comes with a default list of excluded events and maxLogMessageLength value:

maxLogMessageLength: 1000,
excludeFilter: [

Inspect Android WebViews

On Android, in order to enable/disable debugging WebViews using chrome://inspect/#devices on Chrome, you should use the AndroidInAppWebViewController.setWebContentsDebuggingEnabled(bool debuggingEnabled) static method.

For example, you could call it inside the main function:

Future main() async {

if (!kIsWeb && defaultTargetPlatform == {
await InAppWebViewController.setWebContentsDebuggingEnabled(true);

runApp(new MyApp());

Inspect iOS and MacOS WebViews

On iOS and MacOS, debugging WebViews on Safari through developer tools is always enabled. There isn't a way to enable or disable it.