From the course: Debugging Rust Code with AI

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Integrating debugging tools

Integrating debugging tools

- [Instructor] Last time, we fixed a borrow checker issue using rust-analyzer and CodeLLDB. Today we will set up these debugging tools in VS Code. This will help you step up through Rust code without any hassle. And stick around, next up, we'll see how AI can make debugging even faster. Let's start by adding two key extensions to VS Code. Open the Extensions panel with Control+Shift+X. Let's search for CodeLLDB. In my case, I already have it installed. So over here, we just need to click Install. Why CodeLLDB? This gives us the power for debugging features for Rust in VS Code. Now, let's search for rust-analyzer and install that too. As we can see, I already have it installed. Why use this tool? This tool helps with code analysis, auto-complete, and catching errors early on. These two extensions work together perfectly for Rust development. CodeLLDB lets you step through your code and inspect memory, while rust-analyzer helps with tricky ownership and borrowing issues. That's it. Now…

Contents