> For the complete documentation index, see [llms.txt](https://docs.ingestlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ingestlabs.com/tag-manager/live-debugging/retrieve-the-debug-id-using-console.md).

# Retrieve the Debug ID Using Console

## Introduction

You can perform live debugging using the Debug ID on the console.

## Procedure

**Step 1:** Navigate to the particular brand website.

**Step 2:** Right-click on the webpage, select **Inspect**, and then click the **Console** tab.

<figure><img src="https://2731380315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDMDmegqZUJFhJhF4JQG%2Fuploads%2F85Vu8svGpFSbybR6fAp0%2Fimage.png?alt=media&amp;token=391acee6-6711-4847-9535-2707c6d54040" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2731380315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDMDmegqZUJFhJhF4JQG%2Fuploads%2F8raeUV5lph3KD8FBI3BH%2Fimage.png?alt=media&amp;token=39581022-68b1-4810-a1f4-36a5f951dd3b" alt=""><figcaption></figcaption></figure>

**Step 3:** Enter the following command: **\_mp.printDebugId()**

<figure><img src="https://2731380315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDMDmegqZUJFhJhF4JQG%2Fuploads%2FT13cFiHulHeaGmLJzyed%2Fimage.png?alt=media&amp;token=d0dbf7fa-b465-4527-ac33-7f688d17338b" alt=""><figcaption></figcaption></figure>

**Step Result**: The Debug ID appears on the screen.

<figure><img src="https://2731380315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDMDmegqZUJFhJhF4JQG%2Fuploads%2FTsjCdXIh0VXlEF8C4u9r%2Fimage.png?alt=media&amp;token=b11b1e0a-230d-4090-94c6-0769bc5516fb" alt=""><figcaption></figcaption></figure>

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDMDmegqZUJFhJhF4JQG%2Fuploads%2FYYnCNW3rRxvbiaT7irIc%2FRetrieve%20the%20Debug%20ID%20Using%20Console.mp4?alt=media&token=e3719937-4f65-49bd-8c89-5c5365d8970f>" %}


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.ingestlabs.com/tag-manager/live-debugging/retrieve-the-debug-id-using-console.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
