What is Developer Console ?
The Developer Console is an integrated development environment (more typically called an IDE) where you can create, debug, and test apps in your org.
It’s your one-stop solution for a variety of development tasks.
- Navigate, open, create, and edit Apex classes and triggers, Lightning components, and Visualforce pages and components.
- Browse packages that you’ve created or installed in your org.
- Generate logs for debugging and analyze them using different perspectives.
- Test your Apex code to ensure that it’s error free.
- Identify and resolve errors by setting checkpoints in your Apex code.
- Write and execute SOQL and SOSL queries to find, create, and update the records in your org.
Note
The Developer Console doesn’t have version control or conflict resolution. To avoid overwriting other people’s code, be careful when you use the Developer Console in orgs that you share with your teammates.
Accessing the Developer Console
The first thing you learn as a commander is how to access your console. After logging in to your org, click Developer Console under the quick access menu () or your name.
When you open the Developer Console for the first time, you see something like below,
The main pane (1) is the source code editor, where you can write, view, and modify your code. The tabs pane (2) is where you can view logs, errors, and other information, and write queries to interact with the records in your org.
Set Up Your Own Workspace
Select
and give your workspace a name. In your new workspace, you can create Apex classes, Lightning components, Visualforce pages, and more.You can switch between your workspaces by selecting
(1). In this way, you can work with code and analyze logs for each project just by opening a different workspace.