Is there a way to step through Rust code with the asm it compiled to in vscode?

Viewed 817

Decades ago I learned a lot about C, C++, and assembly by looking at the compiled code in the debugger interleaved with the assembly.

I'm now learning Rust on a new M1 Mac and want to do the same thing. I especially want to learn about how well the zero-cost abstractions work. But I'm not proficient at Rust or ARM assembly.

I'm using VSCode and I can't find any way to see the Rust and assembly interleaved like I used to back in the day on my Amiga and 486 PC.

By Googling I can find ways to get rustc to generate the asm, but it's without the Rust code and very hard to follow, especially in an asm dialect I don't yet know.

I know I can see Rust and the asm it compiles to side-by-side on Godbolt, and that's great. But I want to see the code for my whole app and step through it. Is that possible these days?

0 Answers
Related