Loading
Salesforce now sends email only from verified domains. Read More
Set Up and Maintain Your Salesforce Organization
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
          Set Up Debug Logging

          Set Up Debug Logging

          To activate debug logging for users, Apex classes, and Apex triggers, configure trace flags and debug levels in the Developer Console or in Setup. Each trace flag includes a debug level, start time, end time, and log type. The trace flag’s log type specifies the entity you’re tracing.

          Required Editions

          User Permissions Needed
          To view, retain, and delete debug logs: View All Data

          To configure trace flags and debug levels from the Developer Console, click Debug | Change Log Levels. Then complete these actions.

          • To create a trace flag, click Add.
          • To edit an existing trace flag’s duration, double-click its start or end time.
          • To change a trace flag’s debug level, click Add/Change in the Debug Level Action column. You can then edit your existing debug levels, create or delete a debug level, and assign a debug level to your trace flag. Deleting a debug level deletes all trace flags that use it.

          Create Trace Flags in Setup

          1. From Setup, enter Debug Logs in the Quick Find box, then click Debug Logs.
          2. Click New.
          3. Select the entity to trace, the time period during which you want to collect logs, and a debug level.
            A debug level is a set of log levels for debug log categories: Database, Workflow, Validation, and so on. You can reuse debug levels across your trace flags.
            New Trace Flag page

          View, Edit, or Delete Trace Flags in Setup

          1. Navigate to the appropriate Setup page.
            • For user-based trace flags, enter Debug Logs in the Quick Find box, then click Debug Logs.
            • For class-based trace flags, enter Apex Classes in the Quick Find box, click Apex Classes, click the name of a class, then click Trace Flags.
            • For trigger-based trace flags, enter Apex Triggers in the Quick Find box, click Apex Triggers, click the name of a trigger, then click Trace Flags.
          2. From the Setup page, click an option in the Action column.
            • To delete a trace flag, click Delete.
            • To modify a trace flag, click Edit.
            • To modify a trace flag’s debug level, click Filters.
            • To create a debug level, click Edit, and then click New Debug Level.

          Configure Debug Levels in Setup

          Important
          Important The Debug Levels page is only available in Salesforce Classic. As an alternative, you can modify debug levels from the Developer Console or query the DebugLevel object using Tooling API.
          1. To manage your debug levels from Setup, enter Debug Levels in the Quick Find box, then click Debug Levels.
          2. To edit or delete a debug level, click an option in the Action column. To create a debug level, click New.
            Debug Levels list view
           
          Loading
          Salesforce Help | Article