WebInspector


Object Hierarchy:

WebKit.WebInspector WebKit.WebInspector WebKit.WebInspector GLib.Object GLib.Object GLib.Object->WebKit.WebInspector

Description:

[ CCode ( type_id = "webkit_web_inspector_get_type ()" ) ]
public class WebInspector : Object

Access to the WebKit inspector.

The WebKit Inspector is a graphical tool to inspect and change the content of a WebView. It also includes an interactive JavaScript debugger. Using this class one can get a Widget which can be embedded into an application to show the inspector.

The inspector is available when the Settings of the WebView has set the enable_developer_extras to true, otherwise no inspector is available.

```c // Enable the developer extras WebKitSettings *settings = webkit_web_view_get_settings (WEBKIT_WEB_VIEW(my_webview)); g_object_set ( G_OBJECT(settings), "enable-developer-extras", TRUE, NULL);

// Load some data or reload to be able to inspect the page webkit_web_view_load_uri (WEBKIT_WEB_VIEW(my_webview), "http://www.gnome.org");

// Show the inspector WebKitWebInspector *inspector = webkit_web_view_get_inspector (WEBKIT_WEB_VIEW(my_webview)); webkit_web_inspector_show ( WEBKIT_WEB_INSPECTOR(inspector)); ```


Namespace: WebKit
Package: webkit2gtk-4.0

Content:

Properties:

Creation methods:

Methods:

Signals:

Inherited Members: