JetbrainsOrhun ParmaksizExplainer
Debugging Rust in 2026
Summary
A 2026 survey found that 53.2% of Rust users do not use a debugger, with 81.3% citing prints as easier or faster. Debugger usage has risen from 36% to 46.8% since 2021, but async (28.1%) and macros (23.0%) still break stepping features. The post demonstrates four debugging approaches using a Graham scan algorithm bug: print debugging, terminal-based rust-lldb, the RustRover IDE, and AI-assisted debugging via an MCP server. RustRover evaluates expressions by lowering them to MIR and sending them to the debugger. Starting with RustRover 2026.3, the MCP server allows agents like Codex to set breakpoints, step through code, and inspect variables automatically.
Context
The post discusses the state of Rust debugging in 2026, citing survey data showing 53.2% of Rust users do not use a debugger and 81.3% find prints easier or faster. It uses a Graham scan algorithm bug as a running example to demonstrate four debugging techniques: print debugging, terminal-based rust-lldb/rust-gdb, the RustRover IDE debugger, and AI-assisted debugging via an MCP server. The post notes that debugger usage has increased from 36% to 46.8% since 2021, but challenges remain with async (28.1%) and macros (23.0%) breaking stepping features.
Takeaways
53.2% of Rust users do not use a debugger; 81.3% find print debugging easier or faster, making it the most common approach despite requiring recompilation.
Debugger usage increased from 36% to 46.8% since 2021, but async (28.1%) and macros (23.0%) still break stepping features in many debuggers.
RustRover 2026.3’s MCP server lets agents like Codex start debug sessions, set breakpoints, step through code, and evaluate expressions automatically.
FAQ
How does RustRover evaluate Rust expressions in the debugger?
RustRover lowers the Rust expression to MIR (Mid-level Intermediate Representation) and sends it to the debugger (GDB or LLDB) to execute against the paused process. This allows the debugger to evaluate arbitrary Rust expressions and function calls during a debug session.
How does AI-assisted debugging work in RustRover 2026.3?
Starting with RustRover 2026.3, the IDE's integrated MCP server can expose the debugger to agents like Codex and Claude Code. The agent can start a debug session, set breakpoints, step through the program, read variables, and evaluate expressions automatically.
Source and freshness
- Source
- blog.jetbrains.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.