# Scope

`import { Scope } from "destack:debug";`

Source-level debug scope.

```ds title="Scope"
export struct Scope {
    id: ScopeId;
    name: string;
    parent: ScopeId;
}
```

[language/library/src/debug/debug.ds:95:102](https://github.com/destack-sh/destack/blob/main/language/library/src/debug/debug.ds#L95-L102)

## Members

### `id: ScopeId`

Scope identifier.

### `name: string`

Optional display name.

### `parent: ScopeId`

Parent scope when present.
