Cool attribute Diagnostics.Conditional
Something I often see in code is that parts of it are contained in the following construct:
#If DEBUG Then
' Some code
#End If
Nothing wrong with that but often the code is the complete function body leaving an empty function in release mode. Now the JIT optimizer will make short work of it so there isn't a big performance penalty but why make it go through these steps in the first place.
Another way way of doing so is using the Diagnostics.Conditional attribute. This can be applied to some function and removes all calls to it, so much nicer

<Diagnostics.Conditional("DEBUG")> _
Public Sub OnlyHereInDebugMode()
' Some code
End Sub
To see that the function call is really removed just open reflector and compare the release and debug builds.
Enjoy!