Sometimes you want to run your code only when it is not in debug mode.
You can use #IF DEBUG code block for this purpose
#if DEBUG
LogMail("It is in debug mode, only add a log record.")
#else
SendMail("It is not in debug mode, so you can send e-mail.")
#endif
