Field access in a Rust debug REPL, without reflection

2 pointsposted 8 hours ago
by yoheisenju

3 Comments

yoheisenju

8 hours ago

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.

For that reason, I implemented a crate that lets you experience Ruby's binding.pry in Rust as well