Loading
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
          Set Checkpoints in Apex Code

          Set Checkpoints in Apex Code

          Use Developer Console checkpoints to debug your Apex classes and triggers. You can’t set checkpoints in Visualforce markup.

          Important
          Important To set checkpoints, you need the View All Data user permission. To generate results using checkpoints, run code using execute anonymous, or set a DEVELOPER_LOG trace flag on yourself. The trace flag must have a log level for Apex of INFO or higher.
          1. Open the Apex class or trigger in the Source Code Editor.
          2. Click in the margin to the left of the line number where you want to set the checkpoint. You can enable up to five checkpoints at the same time.
            Results for a checkpoint are captured only once, no matter how many times the line of code is executed. By default, the results for a checkpoint are captured immediately before the first time the line of code is executed. You can change the iteration for the capture from the Checkpoint Locations list on the Checkpoints tab. You can also overlay Apex code and SOQL statements that run when code executes at a checkpoint.
          3. Execute the code with the Developer Console open.
          4. View your checkpoints and results on the Checkpoints tab.

          Checkpoints persist until you click Debug | Clear Checkpoint Locations.

          Note
          Note If you set a checkpoint in a method with the @future annotation, you must keep the Developer Console open until the @future method completes asynchronously.
           
          Loading
          Salesforce Help | Article