-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Labels
area:debuggerFeedback for DebuggerFeedback for Debuggerarea:languages/rustRust programming language supportRust programming language supportarea:parity/vscodeFeedback for VSCode parity featuresFeedback for VSCode parity featuresfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usageBugs that happen for at least a third of the users across all platforms and kinds of usagepriority:P2Average run-of-the-mill bugsAverage run-of-the-mill bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduceVerified steps to reproduce included and someone on the team managed to reproduce
Description
Reproduction steps
- Create an empty Rust project with
cargo initand change the main function insrc/main.rstopanic!("oh no") - Open the debug menu in Zed (F4) and select "Run (Language: Rust)" from the list
Current vs. Expected behavior
Current behavior: the program panics and exits without ever pausing in the debugger:
Note that the "Rust: on panic" breakpoint is enabled.
Expected behavior: the debugger pauses on the panic.
I see that CodeLLDB 1.11.8 seems to have fixed a related issue. It's not obvious how to check or control which CodeLLDB version Zed uses, but from the DAP logs it sounds like I have 1.12.1:
stderr: [0.7 INFO codelldb] Loaded "/Users/ben/Library/Application Support/Zed/debug_adapters/CodeLLDB/CodeLLDB_v1.12.1/extension/lldb/lib/liblldb.dylib", version="lldb version 21.1.7-codelldb"
Zed version and system specs
Zed: v0.221.5+stable.141.03bfbf242c57f7fdb45708d63d74182898edf2c5 (Zed)
OS: macOS 15.6
Memory: 48 GiB
Architecture: aarch64
Attach Zed log file
No response
Relevant Zed settings
No response
Relevant Keymap
No response
(for AI issues) Model provider details
No response
If you are using WSL on Windows, what flavor of Linux are you using?
None
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:debuggerFeedback for DebuggerFeedback for Debuggerarea:languages/rustRust programming language supportRust programming language supportarea:parity/vscodeFeedback for VSCode parity featuresFeedback for VSCode parity featuresfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usageBugs that happen for at least a third of the users across all platforms and kinds of usagepriority:P2Average run-of-the-mill bugsAverage run-of-the-mill bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduceVerified steps to reproduce included and someone on the team managed to reproduce