Click Debug | Open Execute Anonymous Window to open the Enter Apex Code window.Enter the code you want to run in the Enter Apex Code window or click. … Execute the code: … If you selected Open Log, the log automatically opens in the Log Inspector.
How do I run an Apex code in Salesforce Developer Console?
- Go to debug -> and click on “Open Execute Anonymous Window” or Ctrl/E.
- Enter the code in that window and execute.
- After executing the code every time log is created. …
- We can create/open classes, triggers, pages and static resources by using console.
How do I run an Apex test class?
To run tests for an individual class from Setup, enter Apex in the Quick Find box, then select Apex Test Execution. Click Select Tests, select the classes containing the tests you want to run, and then click Run.