How can I use debugbreak() in C#?

后端 未结 5 1187
臣服心动
臣服心动 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:47

    you can use System.Diagnostics.Debugger.Break() to break in a specific place.. this can help in situations like debugging a service.

提交回复
热议问题