I have a project in Visual Studio 2019 where I am creating a C# interface to a C Library. Everything works fine when I run with the default debug settings, but when I come to add to watch list an STL variable (std::vector, std::string, etc) I get an error message in the watch list saying that I need to enable Mixed mode. After a google search I find the procedure to do this, but this time it crashes the program with "WNTDLL.pdb is no loaded". Leaving the mixed mode active but disabling "Enable native code debugging" fixes the issue, but I still cannot see STL containers.
Are there any other things I need to change in my settings to avoid this crash? What am I doing wrong?
I've tried a few other settings like "Just my code" but that didnt make a difference. There was one issue that arose when installing Visual Studio 2019 where I could not run the "Hello World" default project in C++. I fixed this by first creating the same hello world in Python which somehow fixed the C++ debugger. Could this be a corrupt debugger?
Obviously I expect the program not to crash and instead to allow me to peak inside vaiables and stl containers just like when in a normal C++ application.