__DEBUG__ is defined when debug is enabled for the project. See Project: Settings.
Example:
INCLUDE rtcu.inc PROGRAM test; #IFDEF__DEBUG__THEN DebugMsg(message := "Debug is enabled."); #ELSE DebugMsg(message := "Debug is not enabled."); #END_IF END_PROGRAM;