Loading
Salesforce now sends email only from verified domains. Read More
Enhance Salesforce with Code
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
          Debug Your Code

          Debug Your Code

          Use checkpoints, logs, and the View State tab to help debug the code you’ve written.

          • Set Checkpoints in Apex Code
            Use Developer Console checkpoints to debug your Apex classes and triggers. You can’t set checkpoints in Visualforce markup.
          • Overlaying Apex Code and SOQL Statements
            Use the Developer Console to overlay diagnostics that run when Apex code executes at a checkpoint, without changing any code.
          • Checkpoint Inspector
            Use checkpoints to investigate the objects in memory at a specific point of execution and see the other objects with references to them.
          • Log Inspector
            The Log Inspector is a context-sensitive execution viewer in the Developer Console. It shows the source of an operation, what triggered the operation, and what occurred next. Use this tool to inspect debug logs that include database events, Apex processing, workflow, and validation logic.
          • Use Custom Perspectives in the Log Inspector
            A perspective is a predefined layout of panels in the Log Inspector.
          • Debug Logs
            Use debug logs to track events that occur in your org. Debug logs are generated when you have active user-based trace flags, when you run Apex tests, and when executed code or API requests include debugging parameters or headers.
           
          Loading
          Salesforce Help | Article