【发布时间】:2018-08-20 10:07:40
【问题描述】:
我想使用 Valgrind 分析我的应用程序,但我找不到有关如何在 Windows 上执行此操作的教程。
当我尝试使用
打开我的应用程序时valgrind -v ./ThreadClass.exe
我明白了
valgrind: ./ThreadClass.exe: cannot execute binary file
所以错误与那些主题不同:
'Valgrind does not work with WSL?'
'How to use Valgrind on Windows'
正如“Valgrind does not work with WSL?”的答案之一所述,它应该适用于最新版本的 Windows 10(创作者更新)。
谁能向我解释一下,如何在 Windows 10 上使用 Valgrind 分析应用程序?
我是否需要为 linux 编译我的应用程序才能在 WSL(适用于 Linux 的 Windows 子系统)中使用 Valgrind 运行它?
【问题讨论】:
标签: windows-10 valgrind windows-subsystem-for-linux