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
          Searching a Debug Log

          Searching a Debug Log

          To search for text in a debug log, use the Command Line Window in the Developer Console.

          Before you can search, you must execute Apex statements to generate the log from the Command Line Window.

          1. To open the Command Line Window, click CTRL+L.
          2. Execute Apex code to generate a log:
            • To enter Apex statements at the command-line, type exec <Apex statements>.

              For example:

              exec List<Account> accts = new List<Account>();
              for (Integer i=0; i<20; i++){
              	Account a = new Account(name='Account Name ' + i);
              	accts.add(a);
              }
              
            • To execute code you already entered in the Enter Apex Code window, type exec-r.
          3. After the log has been generated, type find <string> to search for the specified text.
            For example: find Account Name.
            Search results are displayed in the Command Line Window.
          4. To close the Command Line Window, click CTRL+L.
           
          Loading
          Salesforce Help | Article