# pause

### Function

> pause

### Syntax

> pause( );

### Parameters

No argument.

### Description

Breaks and halts the system and give control to the kernel debugger.

### Examples

`pause();`

Break and halt the system and give control to the debugger.

### Remarks

{% hint style="warning" %}
You can **only** use this function in **Debugger Mode**, and you **cannot** use it on VMI **Mode or local debugging**.

This command must be used in [events](https://docs.hyperdbg.org/design/debugger-internals/events). You should avoid using this function with the '[?](https://docs.hyperdbg.org/commands/debugging-commands/eval)' command. Otherwise, the system will halt.
{% endhint %}

### Related

None


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hyperdbg.org/commands/scripting-language/functions/debugger/pause.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
