amphetamine tokyo is a user on social.wxcafe.net. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
amphetamine tokyo @amphetamine

hmm still looking for like, a way to teach myself gdb/rr or have my darn hand held, because i'm a box of rocks about debugging

· Web · 0 · 2

alternatively, how do *you* debug your rust program when you can't println! your way out of it or just reason out the code because it's a large codebase?

@amphetamine I always use a debugger in every language.

If you're not using a debugger, that's only because you haven't found the right debugger yet.

@amphetamine Much to my surprise, the internet says that gdb doesn't work on Rust yet? I figured that if it worked for D (which it does for me), it works for everything.

What about this?

github.com/RustDT/RustDT/blob/

Surely if Eclipse can use gdb for Rust, so can anything else?

@JordiGH there's a totally sweet gdb-based debugger called rr but first i need to understand gdb huonw.github.io/blog/2015/10/r

@amphetamine You're in luck, @tromey just joined Masto a few minutes ago, and he's a gdb contributor and Rust enthusiast. He might help.

@JordiGH @amphetamine
There are some decent gdb tutorials and GUIs. Most should be reasonably rust-savvy out of the box. Feel free to report problems to me, fixing the Rust debugging story is my current job.

@amphetamine or at least I tried it on a small project I have and it seems to produce reasonable basic results gitlab.peach-bun.com/snippets/

tooting of mine own horn; C++ Show more

tooting of mine own horn; C++ Show more

@amphetamine Have you tried CLion with the Rust plugin? It should work with GDB fine. blog.jetbrains.com/clion/2018/

Debugging is one of the places where IDEs really shine.