Debug mode in challenges


As a swift developer I often use active compilation conditions / preprocessor flags to have different behaviors between debug and production. I heard that for Rust they have a debug mode that is used in editor mode in challenge, and wondered if it would be possible to have a DEBUG flag with swift while running in the editor mode, and not set in battles against other people ?