
1.Install Visual Studio Code and Salesforce CLI Visual Studio Code : can be installed in any Macos, Windows and Linux operating system. You can set checkpoints in your code to assist further. To start with the Salesforce Source Code repository Management with version controls like Visual Studio Code and GitHub, we need to have certain software installed in our systems. It is targeted at developers who want a lightweight and fast way to work with their Salesforce files. If you are behind a firewall that needs to allow specific domains used by VS Code, heres the list of hostnames you should allow communication to go through: - Visual Studio Code download and update server. It'll be actively streaming for information and the information will appear in the "Debug console" in the lower half next to "terminal". This extension is a companion for SFDC () development with Visual Studio Code. Now, you can "launch apex debugger" by clicking on that same icon on the left sidebar. Use Visual Studio Code for Salesforce Development Press Command + Shift + P on Mac or Ctrl + Shift + P on Windows to make the command palette appear.


I've taken the below information from the trailhead and developer documentation.įirst step, you need to create a permission set and assign it to your user record to give system permission "Debug Apex". As a slightly different answer that does require more setup: there's a good trailhead about debugging your code in VS with checkpoints and the Apex Debugger which presents the ApexDebuggerEvent information through the Streaming API.
