I’ve written a C# application, where much of the work is done in a C++ back-end. Now I’ve been actively developing both sides, and the current iteration of the back end throws an access violation in a specific function. How can I go and debug this? VS won’t break on exceptions or breakpoints in native code, nor show the call stack or locals of the native code, even though both projects are built in the same solution. I’d rather avoid having to go back and litter all my native code with logging statements.
Share
VS will debug the native code, too, if you switch on mixed-mode debugging (and recompile your project).
See the Microsoft’s explanation: http://msdn.microsoft.com/en-us/library/kbaht4dh.aspx