

Your Debian environment should be detected automatically. In File > Settings > Toolchains, click on Add (+) and select WSL. Now that everything is ready you must configure CLion in order to be able to use the CMake of WSL and then valgrind. This command will ask you for a password (and username must be replace by your username). Then you must create a connection with: ssh -p2222 Then, in the WSL command interface you have to configure and run the open ssh-server. You may need to enter the following command in the PowerShell to enable specific features: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux This command should display the version of CMake that you just installed (3.17.5 in my case).

To ensure that CMake is properly installed you can run: cmake -version
INSTALL CLION INSTALL
Then, to install cmake you have to run: cd cmake-3.17.5/. To unpack the file you must run tar -xvzf cmake-3.17.5.tar.gz You can check the latest versions of cmake at. Then you must download the CMake version that you want (curently the latest CMake version supported by CLion is 3.17.5). In order to properly install CMake you will need the following packages: sudo apt-get update sudo apt-get install openssh-server wget gcc clang gdb build-essential libssl-dev You must run this app and then enter a username associated with a password. Once the Debian distribution is installed, you should see a Debian icon in the start menu. Then, you can download and install the Debian distribution: To do so, you must type the following in the PowerShell: wsl -set-default-version 2 Then, you must set WSL 2 as the default version when installing a new Linux distribution. In order to enable the new features, you must now restart your computer. Then, to enable the Virtual Machine feature you must run: dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart In order to install Windows Subsystem for Linux on Windows 10, you must first enable WSL by opening the PowerShell as Administrator and running: dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart Go to File -> Settings -> Other Settings -> cpplint option, fill in the absolute paths of python and cpplint.py Enjoy developing Please note: If you are using cygwin, use cygwin python package and fill with unix-style paths in the option panel (for example, /usr/bin/python and /home/tools/cpplint.py). Install Windows Subsystem for Linux (Windows 10)
INSTALL CLION HOW TO
Therefore, I am gonna explain how to install Windows Subsystem for Linux (WSL Debian), how to install CMake on Debian, and how to link WSL to CLion on Windows. Jetbrains CLion is an amazing tool to write C / C++ code but it can be a bit tricky to use valgrind on Windows. Using valgrind on Windows in CLion (with WSL)
