![install gdb for codelite windows install gdb for codelite windows](http://codelite.org/images/app_thumb.png)
We recommend CMake because it build and debug the same project on Windows, WSL, and remote systems.įor a video presentation of the information in this topic, see Video: Debug C++ with WSL 2 Distributions and Visual Studio 2022. CMake is our recommendation for all C++ cross-platform development with Visual Studio. Visual Studio's WSL 2 toolset supports both CMake and MSBuild-based Linux projects. You can already build and debug C++ code on WSL 1 distros using the native WSL 1 toolset introduced in Visual Studio 2019 version 16.1.
![install gdb for codelite windows install gdb for codelite windows](https://user-images.githubusercontent.com/639708/99484441-c5cebb00-29a3-11eb-84dc-f24e00322d47.png)
Visual Studio's WSL 2 toolset allows you to use Visual Studio to build and debug C++ code on WSL 2 distros without adding a SSH connection. It provides better Linux file system performance, GUI support, and full system call compatibility. WSL 2 is the new, recommended version of the Windows Subsystem for Linux (WSL). This toolset is available now in Visual Studio 2022 version 17.0 or higher. Visual Studio 2022 introduces a native C++ toolset for Windows Subsystem for Linux version 2 (WSL 2) development.