If you are developing using Rust on Windows with a WSL2, adding support for debugging is very easy. If you haven’t started using WSL2(Windows subsystem for Linux 2) yet, you can follow my previous post on how to Install and setup Rust development environment on WSL2.

Install Debug Tools

We’ll write a new application to go through the setup steps. You can also clone the application from Github if you don’t want to set it up locally.