Scene will not render in Debug build

When I build a debug executable (any of the samples or my own project) in debug I only get a blank screen when the application runs. If I build as release everything renders just fine. Is there some CMake option I missed, or something in Visual Studio I need to change?

Let me guess. Do you use Visual Studion 2017 x64 that have broken debug code generator?
Problem going from 32 to 64 bit, DirectX 11

You would guess correctly.

Thanks for the link. As per the comments there I updated VS and everything works great now.