Programmatically raise a breakpoint in VB.NET Code

by Andrew Jackson 24. March 2006 12:28
' Check to see if we are being debugged - (this is effectively the only way i've
' found to check "in ide")
If System.Diagnostics.Debugger.IsAttached Then
' Force the code to bread
System.Diagnostics.Debugger.Break()
End If

This is an alternative to Debug.Assert( )

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Development | VB.net

Comments are closed

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen