# Просмотр области памяти / Memory view

Помимо переменных простых типов и небольших структур в программе могут использоваться массивы, значения которых уже так просто не проверить в окне переменных. В таком случае Вы увидите лишь значение первого элемента и адрес массива в памяти.

Чтобы посмотреть, что храниться по определённому адресу в памяти, нужно перейти в Memory View и внести имя переменной или адрес.

{% tabs %}
{% tab title="Visual Studio" %}
По умолчанию, в Visual Studio сочетанием клавиш для открытия окна Memory view является **`CTRL`** + **`ALT`** + **`M`**, **{`1`, `2`, `3`, `4`}**. Visual Studio позволяет просматривать содержимое памяти в различных режимах отображения: различная группировка байтов, система счисления и символьное отображение справа.

<figure><img src="/files/Jj3zscz20gGzFcQo85sn" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="CLion" %}
По умолчанию, в CLion при запуске отладки окно Memory view открывается автоматически в **`Debug`** - **`Debugging`** - **`Memory View`**.

<figure><img src="/files/OsqIcDwSIkLC9T8jxWQb" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Visual Studio Code" %}
Для VSCode есть отдельное [расширение](https://marketplace.visualstudio.com/items?itemName=mcu-debug.memory-view), добавляющее Memory View.

<figure><img src="/files/jrb1gGIfBgA2Otgnteeu" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}


---

# 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://skkv-itmo.gitbook.io/c-cpp-cookies/debug/memory-view.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.
