在 CLion 上将 Valgrind 与 WSL 结合使用时遇到问题
Having troubles using Valgrind with WSL on CLion
正在 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
适合我。
正在 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
适合我。