Tuesday, March 1, 2011

Debugger.Break Method().

This method lives inside System.Diagnostics Namespace. This method Signals a breakpoint to an attached debugger.

image

This is really useful when we debugging .NET Windows Service.   In your Program  add the following line of code wherever you want to break into debug mode:
System.Diagnostics.Debugger.Break()

Nandri(Thanks)

Sreenivasaragavan

No comments: