Valgrind in Qt Creator



使用 Qt Creator 的 Memcheck 函数返回以下内容:

valgrind: Bad option: --xml=yes, but no XML destination specified
valgrind: --xml=yes has been specified, but there is no XML output
valgrind: destination.  You must specify an XML output destination
valgrind: using --xml-fd, --xml-file or --xml-socket.
valgrind: Use --help for more information or consult the user manual.
Analyzing finished.
** Unknown error **

配置中是否有未正确设置的内容,或者这是Qt Creator的错误?我在设置中看不到任何可以注入命令行参数或设置 XML 文件输出的地方。

这是由于valgrind-3.13中的一个xml-socket错误。

现在,如果你想毫无问题地使用valgrind,你可以降级到valgrind-3.12。

最新更新