# Debug

### Debugging a Flow in DBSync Cloud Workflow

Debugging a flow in DBSync Cloud Workflow helps identify and resolve issues in your integration processes.

Follow these steps to effectively use the debugging features:

### Steps to Debug a Flow

1. In the Flow Builder screen, drag the Flow action from the Actions palette on the left and drop into the workflow.
2. Click **Configure** on the flow panel to configure the flow.&#x20;
3. **Add Query Action**: Drag and drop a Query action into the flow. Configure it by selecting the appropriate data source (e.g., Salesforce) and the object you want to query (e.g., Account). Choose All Fields or specific fields as needed.
4. **Preview the Query Results**: Click on Preview from the query configuration section to see the results that will be returned by the query. This ensures your query is set up correctly and returns the expected data.
5. **Add Debug Action**: Drag and drop a Debug action into the flow. Click Configure to define the variable you want to debug. Use the fx icon to access the list of schemas and select the relevant fields to display in the debug output.
6. **Run the Flow**: After configuring the flow and adding the debug action, click the Run icon to execute the flow. The console will display the executed query, and you should see the debug output showing the results.
7. **Check Console Output**: Review the console output for any errors or unexpected results. If issues arise, revisit the query configuration or flow setup to identify and correct any problems.
8. **Troubleshoot Errors**: If you encounter errors during execution, check the logs for error codes and descriptions. Common issues may include incorrect configurations, insufficient permissions, or syntax errors in the query.
9. **Iterate and Refine**: Based on the debug output and any errors, make necessary adjustments to the flow or query. Repeat the debugging process as needed until the flow operates as expected.

> **PRO TIP**
>
> * Ensure that you save every Action configuration.
> * Set breakpoints strategically to focus on specific parts of the flow where issues are likely to occur. This helps in isolating and resolving problems more efficiently.

## **Related Content**

* [Flow Builder Overview](https://docs.mydbsync.com/cloud-workflow/create-your-workflow/flow-builder):  Explore the features of Flow Builder and how to utilize them effectively in your DBSync Cloud workflow.
* [Flow](https://docs.mydbsync.com/cloud-workflow/ipaas/functional-concepts/flow):  Insights into how flows execute within your workflows.
* [Query](https://docs.mydbsync.com/cloud-workflow/ipaas/functional-concepts/query): Using the DBSync Query Tool for Data Validation.
* [Automated Task](https://docs.mydbsync.com/cloud-workflow/create-your-workflow/automation): Detailed guide on building and customizing automated tasks within your projects.


---

# 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.mydbsync.com/cloud-workflow/2026_create-your-workflow/action/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.
