Line by line interractive debugger


#1

Does Rust have one? I’d like something like pry in Ruby where you can see the variables and debug an application line by line interactively .


#2

You can debug with gdb. Even better, use any of the IDE integrations (e.g. RustDT).


#3

lldb works excellent too.


#4

I am using gdb, but it barfs when I try to call a Rust method on a struct.


#5

Please file a bug in gdb bugzilla with steps to reproduce. For best results, try gdb git master first, as that has the Rust support.

It’s possible that this is one of the known bugs in the gdb support, though. Those generally arise from rustc not generating sufficient debuginfo.