First there is #Print, but this is for printing preprocessor constants as far as I know.
Second DebugLog "bla" is what you want to have, if I understood it right. It only prints if you are compiling in debug mode
And third I don't use DebugLog, because for me its to much to write and I am used to PureBasics Debug "bla", so I just used:
Function Debug:Void(message:String)
#if CONFIG="debug"
Print(message)
#endif
End
That is certainly not ideal and I would suggest to change the function call from DebugLog to Debug or at least provide an alias called Debug