# print (evaluate and print expression in debuggee)

### Command

> print

### Syntax

> print \[Expression (string)]

### Description

Shows the result of an expression that will be executed in the remote debuggee.

### Parameters

**\[Expression (string)]**

The expression is based on HyperDbg's [scripting language](https://docs.hyperdbg.org/commands/scripting-language/assumptions-and-evaluations).

### Examples

The following command shows the `@rax` register in the debuggee.

```diff
0: kHyperDbg> print @rax
```

The following command shows the data as an 8-byte hex, pointed by the `@rcx` register.

```diff
0: kHyperDbg> print dq(@rcx)
```

The following command shows the value pointed by `$proc+@rdx` which **$proc** is equivalent to current `_EPROCESS` added to the **rdx** register.

```diff
0: kHyperDbg> print $proc+@rdx
```

The following command shows the value of an address, which first, **rax** register is added with **0xa0** constant then a dereference occurs and the target is shown as a QWORD hex.

```diff
0: kHyperDbg> print poi(@rax+a0)
```

### IOCTL

For using this command, you use the same SDK function as the '[.formats](https://docs.hyperdbg.org/commands/meta-commands/.formats#ioctl)' command.

### Remarks

This command is exactly like `print(expr);` in script engine, except that HyperDbg automatically adds `print(` and `);`.

This command is guaranteed to keep debuggee in a halt state (in Debugger Mode); thus, nothing will change during its execution.

### Requirements

None

### 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/debugging-commands/print.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.
