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.

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
原文:https://www.a8q9.cn/en/article/field-access-in-a-rust-debug-repl-without-reflection-528479.html