在Windows 10上工作,启用WSL并安装了Ubuntu。配置了WSL工具链,我可以在CLion上构建和运行东西,除了Valgrind之外,其他所有东西都可以正常运行。
我使用了路径:
\\wsl$\Ubuntu\usr\bin\valgrind
但是每次我尝试运行Memcheck都会得到:
Valgrind executable is not found
我该怎么办?
尝试使用Posix路径/usr/bin/valgrind
。https://www.jetbrains.com/help/clion/memory-profiling-with-valgrind.html#valgrind-wsl
为我工作。