# StopReason

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

Debugger stop reason.

```ds title="StopReason"
export enum StopReason {
    Pause = 1,
    Step = 2,
    Breakpoint = 3,
    Trap = 4,
    Panic = 5,
    Yield = 6,
    Scenario = 7,
}
```

[language/library/src/debug/debug.ds:41:56](https://github.com/destack-sh/destack/blob/main/language/library/src/debug/debug.ds#L41-L56)

## Variants

### `Pause = 1`

Execution is paused explicitly.

### `Step = 2`

Execution stopped after one debugger step.

### `Breakpoint = 3`

Execution reached a breakpoint.

### `Trap = 4`

Execution trapped.

### `Panic = 5`

Execution panicked.

### `Yield = 6`

Execution yielded to the runtime.

### `Scenario = 7`

Execution stopped on a scenario event.
