


To distinguish a breakpoint from a checkpoint, breakpoints display as a solid red dot and checkpoints display as a red circle with a line through the center. Breakpoints and checkpoints display an indicator next to the line number to show they’ve been set. Use the Debug: Toggle Breakpoint and SFDX: Toggle Checkpoint commands to toggle on and off breakpoints and checkpoints, respectively. Compared to breakpoints, checkpoints provide richer information for all local variables, static variables, and trigger context variables. You can set as many breakpoints as you like, but you can only set up to five checkpoints at a time. Checkpoints, a special feature for debugging Apex code, are a type of breakpoint that provides more information by capturing heap dumps. When debugging, a breakpoint instructs the running program to pause at a specific line number so the developer can inspect variable values at that point in time.
#Visual studio community mac debug arguments code#
Let’s set a checkpoint in the code, rerun the test to collect a debug log, then replay the debug log to find our code bug 🐞. The error message indicates the wrong value was assigned to the account’s ticker symbol field.

