I see a lot of times people write code like
#if debugbuild system.debuglog "some message" #endif
It means you type multiple lines of code all the time and if you forget to wrap things in the
#if debugbuild then you have logging messages in your builds that maybe should have been turned off
Personally I have a module, named Debug, that has a method in it – Log
Then where ever I want a debugging message I can write
debug.log "some message"
which is also shorter
Debug.Log is implemented as (I have other overloads as well)
Sub Log(msg as string) #if debugbuild System.Log(System.LogLevelDebug, msg) #endif End Sub
This way I can write my debug.log messages and know that every last one will disappear in a built app.
And I type a little bit less as well