How can I use debugbreak() in C#?

后端 未结 5 1185
臣服心动
臣服心动 2020-12-03 00:53

What is the syntax and which namespace/class needs to be imported? Give me sample code if possible. It would be of great help.

5条回答
  •  生来不讨喜
    2020-12-03 01:42

    http://msdn.microsoft.com/en-us/library/system.diagnostics.debugger.break.aspx

    #if DEBUG
      System.Diagnostics.Debugger.Break();
    #endif
    

提交回复
热议问题