setWebContentsDebuggingEnabled static method

Future<void> setWebContentsDebuggingEnabled(
  1. bool debuggingEnabled
)

Enables debugging of web contents (HTML / CSS / JavaScript) loaded into any WebViews of this application. This flag can be enabled in order to facilitate debugging of web layouts and JavaScript code running inside WebViews. Please refer to WebView documentation for the debugging guide. The default is false.

debuggingEnabled whether to enable web contents debugging.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • debuggingEnabled: all platforms

Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.

Implementation

static Future<void> setWebContentsDebuggingEnabled(bool debuggingEnabled) =>
    PlatformInAppWebViewController.static().setWebContentsDebuggingEnabled(
      debuggingEnabled,
    );