如何在 Visual Studio 2019 上安装视觉检漏仪 (VLD)?

How to install Visual Leak Detector (VLD) on Visual Studio 2019?

我 运行 来自 Releases, and tried to follow official guide 的安装文件,但它仅包含针对旧版本的说明 (Visual C++ 2010/2012/2013)。我没有找到那里提到的菜单。那么如何在 VS 2019 上安装 vld?

只需使用 fork of VLD by Azure 即可。它支持最新版本的 Visual Studio,无需额外配置,并修复了一些错误:

Microsoft Fork

This fork was created to address some of the issues found in the original repo https://github.com/KindDragon/vld, which has not been updated since November 24, 2017. The changes in this repo can be merged back into the original repo if it is again accepting pull requests.

If you would like to contribute to this fork, please submit a pull request. It will be looked at on a "best effort" basis as our team is available.

Copied from README.md

恭喜,现在可以使用VLD了,就

#include <vld.h>