I have several of these in my code which have been working fine so far:
#If DEBUG Then ... some code here #End If
Now, i am
Also remember #if DEBUG must be in uppercase. e.g. #if debug won't work.
#if DEBUG
#if debug