Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/src/debugger.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,22 @@ Check the documentation for your language for example configurations covering ty

Zed will also load debug configurations from `.vscode/launch.json`, and show them in the new process modal if no configurations are found in `.zed/debug.json`.

### Global Debug Configurations

Debug configurations can be defined globally and will be available across all your projects. Global configurations are stored in:
- `~/.config/zed/debug.json` on Linux and macOS
- `%APPDATA%\Zed\debug.json` on Windows
and follow the same format as project-specific configurations.

Global configurations are loaded alongside project-specific ones, allowing you to:
- Define common debug setups that work across all projects
- Share debug configurations with your team
- Set up language-specific debuggers that apply everywhere

To open the global debug configuration file, use the {#action zed::OpenDebugTasks} action from the command palette.

**Configuration Precedence**: When both global and project-specific configurations exist, both are available in the debug modal. Project-specific configurations don't override global ones - they are shown alongside them, giving you access to all configured debug scenarios.

### Launching & Attaching

Zed debugger offers two ways to debug your program; you can either _launch_ a new instance of your program or _attach_ to an existing process.
Expand Down
Loading