What is the equivalent of System.Diagnostics.Debugger.Launch() in unmanaged code?

前端 未结 3 951
被撕碎了的回忆
被撕碎了的回忆 2021-02-01 23:34

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()

3条回答
  •  时光取名叫无心
    2021-02-02 00:00

    Call _CrtDbgBreak() from your Visual C++ code, recompile, run your program and then select Debug the program from the dialog.

提交回复
热议问题