Setting Up VSCode to Debug Rust

preview_player
Показать описание
Watch and learn how to inspect your Rust program with a debugger on VSCode. -- In this video, Herbert will walk you through setting up a debugging environment with VSCode for Rust. He starts by listing the different Rust related plugins you can install for the editor and the tradeoffs to expect with each. Herbert will also highlight the ideal moments to use a debugger and when not to.

This video is cut from a January 2023 webinar titled “Debugging & Optimizing Rust” with Herbert Wolverson.

To access the full webinar sign up here :

Things you will learn :
- Different VSCode Rust plugins and how they add to your developer experience with Rust.
- Keyboard shortcuts to boost your productivity.
- When to not use a debugger.
- How to navigate VSCode’s Rust debugger interface.

Do you prefer logging, running a debugger or both to troubleshoot your code?
Comment below or tweet us on twitter & let us know, we want to hear from you! ~ If you found this video helpful, hit that like button & subscribe for more content like this.

----

Other Links:
Рекомендации по теме
Комментарии
Автор

I've been writing C++ using visual studio professionally for about 5 years now. I'm experimenting with Rust because it seemed to have much cleaner web assembly tooling and I'm really interested in web assembly. I feel like a total novice again! This was super helpful, thank you

monawoka
Автор

Hi great video. by the way the ctrl +, short cut for settings is a macOS thing. On Mac it is cmd +, which a two keys above each other. so it's handy to press this for settings in every program. I found this short cut strange to at first. ;)

SuilujChannel
Автор

As I rustling, this is invaluable - I'm used to debugging my brain logic with seeable results.

Dazza_Doo
Автор

Thank you, I started using rust around 2 weeks ago and keep forgetting about debug and code stepping tools everytime I start a new language, and tend to dump outputs to standard ouput prints, weird habbit .

havocthehobbit
Автор

can anyone tell how to get the run|debug option that exists on top of the main function ?

tsdineshjai
Автор

I'm not getting any option for rust-analyzer-debug. I've got the analyzer installed and codelldb. When I try to start debugging it prompts me with the json. Do you know why that might happen?

Freshbott
Автор

Rust is good on many aspects, but debugging is an absolutely *horrible* experience.

ipojuca