diff --git a/changelog.d/web-inspector-docs.md b/changelog.d/web-inspector-docs.md new file mode 100644 index 00000000..2910b895 --- /dev/null +++ b/changelog.d/web-inspector-docs.md @@ -0,0 +1 @@ +improvement: **Web Inspector docs**: the debugging guide now explains how macOS WebView apps open the WebKit inspector and points native-rendered UI debugging back to automation snapshots. diff --git a/docs/src/app/debugging/page.mdx b/docs/src/app/debugging/page.mdx index 460f679c..1477beaf 100644 --- a/docs/src/app/debugging/page.mdx +++ b/docs/src/app/debugging/page.mdx @@ -151,6 +151,12 @@ For apps with [web content](/frontend), build with `-Ddebug-overlay=true` to ena native dev -Ddebug-overlay=true ``` +## Web Inspector + +On macOS, apps that declare web content get a WebKit inspector entry in the native View menu. Run the app, focus the WebView window, then choose **View > Toggle Web Inspector** or press I. Canvas-only apps do not show the item because there is no WebView to inspect. + +The inspector is for the web surface: DOM, console, network, storage, and frontend JavaScript. For native-rendered UI state, use [Automation](/automation) snapshots and widget driving instead. + See also [native doctor](/debugging/doctor) for a full diagnostic tool reference. ## Environment variables