使用Valgrind与CLion上的WSL一起使用时遇到麻烦

问题描述 投票:0回答:1

在Windows 10上工作,启用WSL并安装了Ubuntu。配置了WSL工具链,我可以在CLion上构建和运行东西,除了Valgrind之外,其他所有东西都可以正常运行。

我使用了路径:

\\wsl$\Ubuntu\usr\bin\valgrind

但是每次我尝试运行Memcheck都会得到:

Valgrind executable is not found

我该怎么办?

valgrind clion windows-subsystem-for-linux
1个回答
0
投票

尝试使用Posix路径/usr/bin/valgrindhttps://www.jetbrains.com/help/clion/memory-profiling-with-valgrind.html#valgrind-wsl

为我工作。

© www.soinside.com 2019 - 2024. All rights reserved.