Field access in a Rust debug REPL, without reflection

2026-10-19来源 Rust Users ForumEnglish
Field access in a Rust debug REPL, without reflection

One paragraph on the Ruby binding.pry experience: one line of code, no debugger setup, a live REPL at the breakpoint.
The pain in Rust today: dbg! is one-way, lldb/gdb setup is heavy, so everyone falls back to println! debugging.

669483167-537bdbad-8f46-49e7-ae1e-477f822f9c95

For that reason, I implemented a crate that lets you experience Ruby's binding.pry in Rust as well.
Please check here for details.: GitHub - 100010/pry-rs: Ruby's binding.pry for Rust — drop pry!() in your code to pause execution and inspect variables in an interactive REPL ✒️ · GitHub

1 post - 1 participant

Read full topic

原文:https://www.a8q9.cn/en/article/field-access-in-a-rust-debug-repl-without-reflection-528479.html

相关文章