If you are using Windows, first see the
WSL guide to set up Windows Subsystem for Linux. Then follow the
Valgrind instructions.
If you are using Linux (including a Codespace), see the
Valgrind instructions.
If you are using a Mac, see the
Leaks guide for instructions on how to set up and use Leaks.