debugger: Do not include Rust in default value for sourceLanguages (CodeLLDB config) (#33670)

- **debugger: Update exception breakpoints list on capability update**
- **Do not prefill codelldb sourcelanguages by default**

Release Notes:

- debugger: CodeLLDB no longer enables pretty-printers for Rust by
default. This fixes pretty-printers for C++. This is a breaking change
for user-defined debug scenarios from debug.json; in order to enable
Rust pretty printing when using CodeLLDB, add `"sourceLanguages":
["rust"]` to your debug configuration. This change does not affect
scenarios automatically inferred by Zed.

---------

Co-authored-by: Anthony Eid <anthony@zed.dev>
This commit is contained in:
Piotr Osiewicz 2025-07-01 13:03:40 +02:00 committed by GitHub
parent bff5d85ff4
commit 2caa19214b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 90 additions and 21 deletions

View file

@ -214,6 +214,8 @@ requirements.txt
#### Rust/C++/C
> For CodeLLDB, you might want to set `sourceLanguages` in your launch configuration based on the source code language.
##### Using pre-built binary
```json
@ -222,7 +224,7 @@ requirements.txt
"label": "Debug native binary",
"program": "$ZED_WORKTREE_ROOT/build/binary",
"request": "launch",
"adapter": "CodeLLDB" // GDB is available on non arm macs as well as linux
"adapter": "CodeLLDB" // GDB is available on non-ARM Macs as well as Linux
}
]
```
@ -239,7 +241,23 @@ requirements.txt
},
"program": "$ZED_WORKTREE_ROOT/target/debug/binary",
"request": "launch",
"adapter": "CodeLLDB" // GDB is available on non arm macs as well as linux
"adapter": "CodeLLDB" // GDB is available on non-ARM Macs as well as Linux
}
]
```
##### Automatically locate a debug target based on build command
```json
[
{
"label": "Build & Debug native binary",
"adapter": "CodeLLDB" // GDB is available on non-ARM Macs as well as Linux
// Zed can infer the path to a debuggee based on the build command
"build": {
"command": "cargo",
"args": ["build"]
},
}
]
```