I need to launch a debugger from my native C++ program when certain conditions are met. In C# I just call System.Diagnostics.Debugger.Launch(). I thought that Win32 DebugBreak()
Call _CrtDbgBreak() from your Visual C++ code, recompile, run your program and then select Debug the program from the dialog.