Salesforce is the most preferred CRM software in the United States and other countries for managing the everyday tasks of their company.
Do you want to know how to access the developer console in salesforce? Read the complete blog to learn how to access the developer console in salesforce using different ways. Also, we have covered these topics:
- How to Access Developer Console in Salesforce
- How to Open Salesforce Developer console in the Same Window
- How to Use Developer Console in Salesforce
- How to Give Access to Developer Console in Salesforce
- How to Remove Developer Console Access in Salesforce
- How to Search in Developer Console in Salesforce
What to learn how to create a Developer Account in Salesforce? Click here to read our blog on How to get a free salesforce account.
How to Access Developer Console in Salesforce
In this tutorial, we are going to learn how to open developer console in the Salesforce Developer account. The steps shared in the section will work for the Trial and Subscribed accounts as well.
Wondering where is the developer console in Salesforce? Read the complete blog to learn how to open the developer console in salesforce.
The Salesforce user experience is divided into the modes and we will see how to access the developer console in both of them:
- Salesforce Classic – This was the only interface before 2014, soon it will be discontinued.
- Salesforce Lightning – New with advanced UI, released in 2014.

Read: How to remove new event button from case object in salesforce
How to Access Developer Console in Salesforce Classic
The Salesforce classic is a traditional interface that is used even till now but it will be discontinued in a few years as Salesforce Lightning is modern and compatible with today’s web.
Salesforce is an American company started in San Francisco, California (USA) and it has been more than 2 decades ever since the company started.
Click on the drop-down next to your name on the top of the salesforce classic dashboard. There you will see Developer Console option, click to start.

This is how to access developer console in salesforce classic.
Read How to Change Timezone in Salesforce
How to Access Developer Console in Salesforce Lightning
Salesforce Lightning is the modern UI that is based upon today’s web requirements and it started in 2014. Compared to the classic it appears more attractive, and easy to use, and more data is displayed on the screen.
Click on the gear icon on the top right of the salesforce lightning dashboard and click on the developer console.

With this, we have learned how to access the developer console in salesforce in both classic and Lightning user interfaces. All the steps are based on the website in the United States (USA) region.
Read How to Find Salesforce Org ID
How to Open Salesforce Developer console in Same Window
In the previous tutorial, we learned how to access the developer console in salesforce. Here, we will see how to open the salesforce developer console in the same window.
Follow the below steps to start the salesforce developer console in the same window:
- Click on the gear icon on the top right of the screen
- A menu will appear with options like Setup, Service Setup, and Developer Console.
- Right-click on the Developer Console and select Open link in new tab.
The developer console will open in the new tab of the same window of the browser.

So in this way we have learned how to open salesforce developer console in same window. Please note that screenshots may vary from browser to browser but all the browsers have the same set of procedures.
How to Use Developer Console in Salesforce
Salesforce Developer console is the integrated development environment with a handful of tools to create, debug, and test applications.
Do you want to learn how to use developer console in salesforce? Read the blog till the end.
In the previous section, we learned how to open a developer console in salesforce. In this tutorial, we will learn how to use it developer console in salesforce.
Wide varieties of operations can be performed using the developer console in salesforce. Mainly it is used for Debugging the operations and for writing Apex class programs.
Open Debug Console in salesforce
- Click on the dropdown next to Debug menu item on the top of the window.
- Select Open Execute Anonymous Window or press the shortcut key on the keyboard CTRL + E to start the Debug console.

- Start typing the Apex code on the editor. Once completed click on the execute button at the bottom of this window to run the program.

- After successful execution below screen will appear. select the Logs and from the logs click on the detail as mentioned in the image.
- In the salesforce debug console, the output appears inside the USER_DEBUG event. Click on the Debug Only checkbox to filter the output from other information.

This is how to open the debug console in salesforce.
Read How to Create Quotes in Salesforce
Create New Apex Class in Salesforce
- Click on the File from the menu item in the developer console.
- Here, you can either open the existing Apex class by clicking on the open or create a new one by clicking on the New
- New will open further sub-menu items, from here click on the Apex Class.

- Provide a name for the New Apex Class. The class name is written in camel case which means the first letter for each word will be uppercase.
- Fill in the name that describes the type of work. In our case, we have provided a Calculator.

- After clicking on the Ok button you will enter into the editor with the basic format already mentioned.
- And from here you can start writing the code on the editor and click on the Go To to compile the code.

This is how to use the developer console in salesforce.
Read How to Merge Accounts in Salesforce
DUPLICATE_VALUE: duplicate value found
While creating an Apex Class if you are getting an error – duplicate value found unknown duplicates value on record with id unknown that means the class name already exists with that name.

Change the name of the class or you can use the existing class by opening it. Follow the below steps to start the existing file.
Step 1: Click on the File from the menu and then Open. You can also use shorthand keys Ctrl + O.

Step 2: Here you will see the list of all the existing classes under Entities. In our case, we have one class with the name Calculator. Click on the name to open it.

We have covered How to use Developer Console in salesforce within which we have learned how to open debug console in salesforce, create a new apex class in salesforce, and how to fix the error DUPLICATE_VALUE: duplicate value found
How to Give Access to Developer Console in Salesforce
So far in the previous sections, we have learned how to access the developer console in salesforce, and how to use the developer console in salesforce. In this tutorial, we will learn how to give access to the developer console in salesforce CRM.
Trial Account and Developer edition already have access to the developer console in salesforce but standard accounts don’t have one.
In order to use Developer Console, one needs to View All Data permission in salesforce. One needs Modify All & Author Apex permissions as well in order to make changes in classes and triggers or to run the anonymous code.
All these permissions can be obtained from the Admin of the company. With this, we have explained how to give access to the developer console in salesforce.
If you are the admin then follow these steps: –
- Navigate to users by searching it on the Quick find.
- From the list of users click on the edit option whom you want to edit.
- Set the profile to System Administrator.
- Save the page and try logging in with the same user again. This time the user will be able to access the developer console in salesforce.
So this is how to give access to the developer console in salesforce.
How to Remove Developer Console Access in Salesforce
Suppose XYZ Pvt Ltd situated in Seattle, USA requires an engineer to fix a problem in their salesforce CRM account. Since the problem demands Developer Console access so he has been provided with the same.
Now once the task is completed, the administrator what to revoke the permission of the Developer console for security reasons.
So by following the below steps, he can remove developer console access in salesforce:
- Navigate to users by searching it on the Quick find.
- From the list of users click on the edit option whom you want to edit.
- Set the profile other than System Administrator.
- Save the page and try logging in with the same user again. This time the user won’t be able to access the developer console in salesforce.
So in this way, we have learned how to remove developer console access in salesforce.
How to Search in Developer Console in Salesforce
The developer console in salesforce facilitates the user to perform a wide variety of operations related to creating, debugging, and testing the application.
To search for the object in the developer console in salesforce click on the File menu and from there click on Open Resource or you can also use the shorthand key CTRL + SHIFT + O. From the Open Resource window, you can type and search for any object.

Another way to search in the developer console in salesforce is using Query Editor. One can write SQL queries in the editor to search for accounts, users, contacts, etc.
Step 1: Open the Developer Console.
Step 2: Select the Query Editor tab and there you will see the editor.

This is how to search in the salesforce developer console.
Conclusion
In this tutorial, we have learned how to access developer Console in Salesforce. Also, we have covered these topics:
- How to Access Developer Console in Salesforce
- How to Open Salesforce Developer console in the Same Window
- How to Use Developer Console in Salesforce
- How to Give Access to Developer Console in Salesforce
- How to Remove Developer Console Access in Salesforce
- How to Search in Developer Console in Salesforce
I am Bijay Kumar, the founder of SalesforceFAQs.com. Having over 10 years of experience working in salesforce technologies for clients across the world (Canada, Australia, United States, United Kingdom, New Zealand, etc.). I am a certified salesforce administrator and expert with experience in developing salesforce applications and projects. My goal is to make it easy for people to learn and use salesforce technologies by providing simple and easy-to-understand solutions. Check out the complete profile on About us.