Loading
Salesforce now sends email only from verified domains. Read More
Automate Your Business Processes
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Test or Troubleshoot Flows With the Flow Builder Debugger

          Test or Troubleshoot Flows With the Flow Builder Debugger

          If you’re testing your flow to make sure it works as expected or troubleshooting a flow that failed, the debug option in Flow Builder can be your best friend. Review step-by-step details of how your flow runs and the path the flow takes.

          Required Editions

          View supported editions.
          User Permissions Needed
          To debug a flow in Flow Builder: View All Data
          To open, edit, create, activate or deactivate a flow using all flow types, elements, and features available in Flow Builder, including Einstein and Agentforce for Flow: Manage Flow
          Warning
          Warning If you debug a flow without choosing to run the flow in rollback mode, the flow performs its actions, including any DML operations and Apex code execution. Remember, closing or restarting a running flow doesn’t roll back its previously executed actions, callouts, and changes committed to the database.

          This video explains the advantages of the Debug feature in Flow Builder along with tips on getting the most from the feature in your own org.

          View this video in a separate tab.

          The Flow Builder debug option has some limitations. See Flow Builder Debugger Considerations.

          1. Open the flow in Flow Builder.
          2. Click Debug.
          3. Set the debug options and input variables.
            The debug options vary depending on the flow type.
            Debugging options and input variables
          4. To debug the flow as another user, enable debugging as another user.
            1. From Setup, in the Quick Find box, enter Process, and then click Process Automation Settings.
            2. Enable Let admins debug flows as other users.
            3. Save your work.
              Let admins debug flows as other users enabled and highlighted in process automation settings.
              Warning
              Warning When you debug a flow as another user, the flow’s record changes and actions are performed as that user. Also, the user’s profile and permission sets determine the object permissions and field-level access of the flow. However, flows that always run in system context ignore the user’s object permissions and field-level access.
            4. In Debug Options, select Run flow as another user and search for the user that you want to debug.
              You can debug a flow as another user only in a sandbox environment.
          5. Click Run.
            The debug details for the run appear in a panel on the right. The debug run is organized into cards (1) that highlight all of the most important information about the run. To resize the debug panel, drag the edge of the panel to your desired width, or click Expand icon and Shrink icon(2). To search the debug run results, enter a search term in the search box (3). To copy the debug log onto your clipboard, click Copy icon(4).
            Debug Details panel.
          6. If you selected Debug wait element behavior when you set the debug options, select a Wait Path, and then click Continue the Debug Run for each Wait element in the flow.
            The debug details for the run appear in a panel on the right.
            Wait element debug configuration
          7. (Optional) To restart the flow by using the same or different values for the input variables, click Debug Again.
          8. (Optional) To convert the debug run to a test in a record-triggered flow only, click Convert to Test.
           
          Loading
          Salesforce Help | Article