---
schema_version: "1"
id: 248bcf86f562c67e58d8cb9c6eca8044889cb04535f9b322546ea44c299d5c79
title: Debug Apex Code
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/salesforcedx/codebuilder/guides/files/develop/apex/codebuilder-apex-debug.md
canonical_url: https://developer.salesforce.com/docs/platform/code-builder/guide/codebuilder-apex-debug.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: cafa7d1b28b7db1c01a9501edb6a4498ae1a943d2fe2f48bc1adb7f44829922d
products:
  - Agentforce Vibes IDE
  - salesforcedx
---
# Debug Apex Code

The Salesforce Extension pack comes with rich debugging options for every developer, regardless of where you land on the low- to pro-code continuum. Use this information to figure out which Apex debugger is right for you:


- [Replay Debugger](https://developer.salesforce.com/docs/platform/code-builder/guide/debug/replay-debugger.md): Free and easy to use.
- [Interactive Debugger](https://developer.salesforce.com/docs/platform/code-builder/guide/debug/interactive-debugger.md): Traditional, licensed debugger that lets you view and pause events in real time.
- [ISV Debugger](https://developer.salesforce.com/docs/platform/code-builder/guide/debug/isv-debugger.md): Use to debug managed package code directly in customer orgs from your License Management Org (LMO).

## See Also

- [Debug Logs](https://help.salesforce.com/s/articleView?id=platform.code_debug_log.htm&type=5)
- [Find and Fix Bugs with Apex Replay Debugger](https://trailhead.salesforce.com/content/learn/projects/find-and-fix-bugs-with-apex-replay-debugger)
- [Debug Log Filtering for Apex Classes and Apex Triggers](https://help.salesforce.com/s/articleView?id=platform.code_debug_log_classes.htm&type=5)
- [Scratch Org Features](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_def_file_config_values.htm)
- [Enable 'Manage Your Apex Debugger Sessions' in Lightning Experience](https://help.salesforce.com/s/articleView?id=000382135&type=1)

