3 ms·
This is slightly tangential...I was trying to learn how to debug rust code with gdb/lldb and ran into so many problems. Then just for kicks I wrote a little C++
by msie 11y ago
This is slightly tangential...I was trying to learn how to debug rust code with gdb/lldb and ran into so many problems. Then just for kicks I wrote a little C++ program and used gdb - so much better :D . I just hope they get the rust debugging situation smoothed out someday but for now I won't be using it.
- brinker 11y agoDid you try using rust-gdb or rust-lldb? They're wrappers for gdb and lldb respectively that make working with Rust code a lot nicer. They ship with the Rust compiler.
- msie 11y agoYes. I couldn't single step through a simple program without delving into assembly code. Couldn't list the program. Breakpoints weren't working. I think part of the problem was working on OSX. I was reading some Rust issue related to the debug info generation. Although the issue was closed I think it's still a problem. Oh well.
- steveklabnik 11y ago> Although the issue was closed I think it's still a problem Please leave a comment if this is true! Opening old issues that come back is good.