# .restart (restart the process)

### Command

> .restart

### Syntax

> .restart

### Description

Restarts a program (the previously started program using the '[.start](https://docs.hyperdbg.org/commands/meta-commands/.start)' command) with the specific parameters and breaks when the PE file reaches the entrypoint.

### Parameters

None

### Examples

Imagine we want to restart a program that we previously started using the '[.start](https://docs.hyperdbg.org/commands/meta-commands/.start)' command.

```
0: kHyperDbg> .restart 
```

### IOCTL

The IOCTL description is the same as the '[.start](https://docs.hyperdbg.org/commands/meta-commands/.start)' command.

### Remarks

This command will continue the debuggee for some time (in Debugger Mode). This means that you lose the current context (registers & memory) after executing this command.

### Requirements

None

### Related

[.start (start a new process)](https://docs.hyperdbg.org/commands/meta-commands/.start)

[.attach (attach to a process)](https://docs.hyperdbg.org/commands/meta-commands/.attach)

[.detach (detach from the process)](https://docs.hyperdbg.org/commands/meta-commands/.detach)

[.switch (show the list and switch between active debugging threads)](https://docs.hyperdbg.org/commands/meta-commands/.switch)

[.kill (terminate the process)](https://docs.hyperdbg.org/commands/meta-commands/.kill)


---

# 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/meta-commands/.restart.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.
