# Debug

## Introduction

The Debug Operation in Autom Mate provides a powerful tool for identifying and resolving errors within your workflows. It allows you to pinpoint error cases within specific actions or throughout the entire flow, ensuring smooth execution of your processes.

The primary purpose of the Debug Operation is to facilitate error detection and monitoring within the flow. By utilizing the debugging console, users can easily track the behavior of actions, validate outputs, and troubleshoot any issues that may arise during execution.

<figure><img src="/files/2xfx0XanDwyHVXIdwzyc" alt=""><figcaption></figcaption></figure>

***

## How To Use Features

### Initiating Debug Process

{% stepper %}
{% step %}
**Click on the Debug Icon**

To apply the debug process, locate and click on the **"black bug"** icon in the upper-left part of the screen.
{% endstep %}

{% step %}
**Activate Debug Mode**

After clicking the bug icon, it changes to a red bug, indicating that the debug action can be performed.
{% endstep %}

{% step %}
**Debug Indicators**

Small black bugs will appear in the upper-left corners of all actions within the flow, indicating that they are included in the debugging process.
{% endstep %}

{% step %}
**Empty Console**

At the bottom of the flow chart, an empty console will appear, ready to display debug process results.
{% endstep %}
{% endstepper %}

***

### Running Debug Process

{% stepper %}
{% step %}
**Start Debugging**

Press the **"Run"** button at the top-right of the flow screen to begin the debugging process.
{% endstep %}

{% step %}
**Monitoring Action Execution**

As the debug process runs, a green light flashes with each action.

* <mark style="background-color:green;">**Green Light**</mark><mark style="background-color:green;">:</mark> Action executed without error.
* <mark style="background-color:red;">**Red Light**</mark><mark style="background-color:red;">:</mark> Error detected in the action.
  {% endstep %}

{% step %}
**Error Details**

Click on the **red light** next to an action to view the error message associated with that action.
{% endstep %}

{% step %}
**Debugging Entire Flow**

If no specific action bug is selected, debugging will run for the entire flow.
{% endstep %}

{% step %}
**Debugging Specific Sections**

Click on a small bug next to an action to run the debug process up to that selected action.
{% endstep %}
{% endstepper %}

***

### Viewing Debug Results

{% stepper %}
{% step %}
**Console Display**

View the debug process results in the console at the bottom of the screen.
{% endstep %}

{% step %}
**Applying Filters**

Apply filters based on data to narrow down debug results and focus on specific aspects of the flow.
{% endstep %}
{% endstepper %}


---

# 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.autommate.com/userguide/autom-features/debug.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.
