---
title: "JSGlobalContextSetInspectable(_:_:)"
framework: javascriptcore
role: symbol
role_heading: Function
path: "javascriptcore/jsglobalcontextsetinspectable(_:_:)"
---

# JSGlobalContextSetInspectable(_:_:)

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

## Declaration

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

## Parameters

- `ctx`: The doc://com.apple.javascriptcore/documentation/JavaScriptCore/JSGlobalContextRef to set whether it’s inspectable.
- `inspectable`: A Boolean value that indicates whether the context is inspectable.

## Topics

### Related Documentation

- [JSGlobalContextCopyName(_:)](javascriptcore/jsglobalcontextcopyname(_:).md)
- [JSGlobalContextSetName(_:_:)](javascriptcore/jsglobalcontextsetname(_:_:).md)

## See Also

### Making a context inspectable

- [JSGlobalContextIsInspectable(_:)](javascriptcore/jsglobalcontextisinspectable(_:).md)
