# Debugging

> Debug agentic processes in Maestro Orchestrate using the Debug and Debug step-by-step options, including context menu test controls on the start event.

To debug your agentic process, select the **Debug** option from the top-left toolbar. You can also use the **Debug step-by-step** option to debug your project one element at a time. Alternatively, if you open the context menu for the start event, you get the **Test** and **Test step-by-step** options that deliver the same results.

![Test Configuration - Selection](https://dev-assets.cms.uipath.com/assets/images/maestro/maestro-test-configuration-selection-594402-90991b52.webp)

:::tip
Open the context menu for a start element in the process, and select **Simulate** to trigger the [simulation](https://docs.uipath.com/maestro/automation-suite/2.2610/user-guide/simulate).
:::

:::note
Debugging a Maestro Orchestrate process starts an **agent debug job** instead of a standard agent job.

This lets you use the free agent debug credits available in your subscription when testing processes.
:::

1. Open the **Debug configuration** panel.

   ![Debug configuration panel showing Solution resources tab](https://dev-assets.cms.uipath.com/assets/images/maestro/maestro-test-configuration-panel-594572-445b7e3e.webp)

2. Select the **Debug** drop-down menu in the top toolbar and choose **Debug configuration**.
3. Assign Solution resources in the **Solution resources** tab, and map your process to the required resources:
   1. Under **Connections**, assign things like **Data Fabric Workspace**, **EmailConnection**, etc.
   2. Under **Processes**, connect to agents and RPA components (e.g., loan-validation-agent, ReadApplication bot). This ensures that when the test runs, each component is backed by a real resource.
4. Provide Project arguments switch to the **Project arguments** tab to input values needed by your process (like test email addresses, case IDs, etc.). Each argument corresponds to an input variable defined in your process. Example: LoanPortalEmail represents the test inbox used to simulate customer intake.

   ![Project arguments tab in the Debug configuration panel](https://dev-assets.cms.uipath.com/assets/images/maestro/maestro-test-configuration-popup-594576-c3ed848e.webp)

## Result

The execution starts and new panels open, allowing you to test and debug the functionality of the process step by step.
:::note
A **User task** step creates a task and waits for it to complete. To continue debugging, complete the task in Actions (formerly called Action Center).
:::

In debug mode, you can interact with the agentic process elements and examine their details.

   ![Debugging panel showing execution in progress](https://dev-assets.cms.uipath.com/assets/images/maestro/maestro-debugging-538492-3cf5e80d.webp)

:::note
In Debug mode, a process can run for maximum 35 minutes. This limit applies regardless whether the process fails or involves a long-running workflow.
:::

## Debugging properties

The **Output** tab shows the overall execution status.

The **Execution trail** tab shows you detailed information (**Details**) and variable values (**Variables**) for each step in the execution. Select the expand button to see additional variable details. You can edit variables when the debug instance is in a paused state.

The **Action history** tab shows you the comments logged from any manual interactions during the execution, as well as automatic system events, such as the debug run becoming throttled due to high activity volume.

The **Global Variables** tab shows you the values of the variables for the entire process.

   ![Execution trail tab showing step details and variable values](https://dev-assets.cms.uipath.com/assets/images/maestro/maestro-execution-trail-538499-2db952dc.webp)

## Breakpoints
You can set breakpoints on elements to see how they are executed. To set a breakpoint, point to the upper left of an element and select the breakpoint icon. Currently, breakpoints can only be set once you start debugging a process. However, they will be retained between runs.

   ![Breakpoint indicator on a process element in the canvas](https://dev-assets.cms.uipath.com/assets/images/maestro/maestro-breakpoint-538508-1b1eb59f.webp)

   ![Tooltip "Click to add a breakpoint" on a process element](https://dev-assets.cms.uipath.com/assets/images/maestro/maestro-docs-image-587615-0f84a671.webp)

When a breakpoint is triggered in an agentic process, the process engine will pause execution, allowing you to examine the execution details. To add a breakpoint, open the context menu for an element and select **Add Breakpoint**.

Select the **Continue** button from the top ribbon to run the entire workflow (or next breakpoint), or choose **Next step** to advance to the next step in your automation. If you want to end the debugging process and return to your agentic process, select **Stop**.

   ![Stop, Continue, and Next step controls in the debug toolbar](https://dev-assets.cms.uipath.com/assets/images/maestro/maestro-stop-continue-next-step-538514-d9ab6cc4.webp)
