---
title: "Enabling the Inspection of Web Content in Apps"
description: "WKWebView and JSContext now expose an opt-in `isInspectable` property (default false), letting released apps, not just Xcode development builds, have their web content and JavaScript contexts debugged with Safari's Web Inspector."
url: "https://swe.quest/articles/enabling-the-inspection-of-web-content-in-apps-389bd71d9c9fbad3"
canonical: "https://webkit.org/blog/13936/enabling-the-inspection-of-web-content-in-apps/"
source: "WebKit"
published: "2023-03-20"
difficulty: "medium"
kind: "How-to"
reading_minutes: 4
tags: ["debugging","mobile","swift","developer-tools","browsers"]
---

# Enabling the Inspection of Web Content in Apps

A post on [WebKit](https://swe.quest/sources/webkit.md), published 2023-03-20, 4 min read, How-to. Original: [https://webkit.org/blog/13936/enabling-the-inspection-of-web-content-in-apps/](https://webkit.org/blog/13936/enabling-the-inspection-of-web-content-in-apps/)

## Summary

WKWebView and JSContext now expose an opt-in \`isInspectable\` property (default false), letting released apps, not just Xcode development builds, have their web content and JavaScript contexts debugged with Safari's Web Inspector. Swift, Objective-C and C (\`JSGlobalContextSetInspectable\`) examples are given. Inspection can be toggled at runtime, and disabling it closes an active inspector. Unnamed JSContexts all appear as "JSContext" in the Develop menu, so each should get a \`name\`. Apps linked against the macOS 13.3/iOS 16.4 SDKs lose the old always-inspectable debug behavior and should guard the API with availability checks.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)
- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)
- [Swift](https://swe.quest/tags/swift.md) (Languages)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)

## Prerequisites

- WKWebView basics
- iOS/macOS app development

## Keywords

Web Inspector, WKWebView, JSContext, Safari, WebKit, JavaScriptCore

## Related posts

- [Try out your website in the spatial web](https://swe.quest/articles/try-out-your-website-in-the-spatial-web-5164ff9af4fcad84.md): WebKit · 2024-06-12 · Medium · 6 min read · Browsers, Developer tools, Debugging
  Websites generally need no special changes to work in Safari on visionOS, which runs the same WebKit engine.
- [WebKit Features for Safari 27.0](https://swe.quest/articles/webkit-features-for-safari-27-0-c0a6911acf8a84f2.md): WebKit · 2026-09-17 · Medium · 87 min read · Browsers, CSS, Frontend, AI agents
  Safari 27.0 ships 80 new WebKit features and 844 fixes, including a local Safari MCP server (via safaridriver --mcp) that lets coding agents like Claude Code or Codex inspect DOM, network, console and screenshots.
- [Badging for Home Screen Web Apps](https://swe.quest/articles/badging-for-home-screen-web-apps-42741870aac64b42.md): WebKit · 2023-04-25 · Medium · 4 min read · Browsers, Mobile, JavaScript, Frontend
  WebKit on iOS and iPadOS 16.4 supports the W3C Badging API, but only for web apps added to the Home Screen.
- [WebKit Features in Safari 18.0](https://swe.quest/articles/webkit-features-in-safari-18-0-21b8c1f56b7c7e96.md): WebKit · 2024-09-16 · Medium · 36 min read · Browsers, CSS, Frontend
  Safari 18.0 ships 53 new web platform features, 25 deprecations and 209 fixes in WebKit alongside iOS 18, macOS Sequoia and visionOS 2.
- [Global Privacy Control (GPC) WebKit API](https://swe.quest/articles/global-privacy-control-gpc-webkit-api-320ef8eb92f93e52.md): WebKit · 2026-11-18 · Medium · 1 min read · Privacy, Browsers, Mobile, Swift
  iOS, iPadOS, visionOS and macOS 27 add a WebKit API that lets apps embedding WKWebView or SwiftUI's WebPage opt navigations into Global Privacy Control, the emerging standard for signalling opt-out of data sharing and cross-context targeted advertising (recognized under California's CCPA).

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
