Visual Leak Detector with Visual Studio 2017: no source code line numbers

Try to disable partial PDB: in project properties click to Linker - All Options - Generate Debug Info, select "Generate Debug Information optimized for sharing and publishing (/DEBUG:FULL)" instead of default "Generate Debug Information for faster links".


Just changing the linker settings to /DEBUG:FULL was not sufficient for me. Using /DEBUG:FASTLINK is ok.

However, I had to use a matching up-to-date dbghelp.dll from Visual Studio itself instead of the one coming with VLD (I am using VLD version 2.5.1 in x86 mode).

There are a few DLLs with that name. I took this one and copied it into my runtime folder of my project (replacing the one I had originally copied there from the VLD installation).

X:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\TestPlatform\Extensions\Cpp

Note: You might have to replace "Professional" with "Community" depending on the IDE version you have.