How do I get crtdbg.h file?

I ran into this exact same issue, but with Visual Studio Community Edition 2019.

The solution was to download the Windows 10 SDK using the Visual Studio installer. Once I did that the next compile worked fine.

The header file “crtdbg.h” is part of the Windows 10 SDK kit. I believe you will find crtdbg.h located here C:\Program Files… or C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h depending on your setup and version.

Leave a Comment