---
title: "JSGlobalContextSetName(_:_:)"
framework: javascriptcore
role: symbol
role_heading: Function
path: "javascriptcore/jsglobalcontextsetname(_:_:)"
---

# JSGlobalContextSetName(_:_:)

Sets the remote debugging name for a context.

## Declaration

```swift
func JSGlobalContextSetName(_ ctx: JSGlobalContextRef!, _ name: JSStringRef!)
```

## Parameters

- `ctx`: The doc://com.apple.javascriptcore/documentation/JavaScriptCore/JSGlobalContextRef that you want to name.
- `name`: The remote debugging name to set on ctx.

## See Also

### Managing the context’s name

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