> For the complete documentation index, see [llms.txt](https://skkv-itmo.gitbook.io/c-cpp-cookies/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://skkv-itmo.gitbook.io/c-cpp-cookies/debug/call-stack.md).

# Стек вызовов / Call stack

При отладке может быть полезно посмотреть стек вызовов функции - каким путём исполнение "добралось" до текущего положения и какие значения у переменных в функциях выше по этому стеку вызовов.

{% tabs %}
{% tab title="Visual Studio" %}
По умолчанию, в Visual Studio сочетанием клавиш для открытия окна стека вызовов является **`ALT`** + **`F7`**.

Существует также альтернативный вариант:

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

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

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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/call-stack.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.
