<!--
{
  "availability" : [
    "iOS: 16.4.0 -",
    "iPadOS: 16.4.0 -",
    "macCatalyst: 16.4.0 -",
    "macOS: 13.3.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "JavaScriptCore",
  "identifier" : "/documentation/JavaScriptCore/JSGlobalContextSetInspectable(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "JavaScriptCore"
    ],
    "preciseIdentifier" : "c:@F@JSGlobalContextSetInspectable"
  },
  "title" : "JSGlobalContextSetInspectable(_:_:)"
}
-->

# JSGlobalContextSetInspectable(_:_:)

Sets a JavaScript context to be either inspectable or not inspectable.

```
func JSGlobalContextSetInspectable(_ ctx: JSGlobalContextRef!, _ inspectable: Bool)
```

## Parameters

`ctx`

The [`JSGlobalContextRef`](/documentation/JavaScriptCore/JSGlobalContextRef) to set whether it’s inspectable.

`inspectable`

A Boolean value that indicates whether the context is inspectable.

## Topics

### Related Documentation

[`JSGlobalContextCopyName(_:)`](/documentation/JavaScriptCore/JSGlobalContextCopyName(_:))

Gets a copy of the name of a context.

[`JSGlobalContextSetName(_:_:)`](/documentation/JavaScriptCore/JSGlobalContextSetName(_:_:))

Sets the remote debugging name for a context.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)