Are there any built in conditional compilation constants that I can use to check if I’m running in debug or release build?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not by default, no. But it is easy to add to your build configuration to do this. Here is an explanation of compiler flags and conditional compilation.
AS3: Conditional Compilation Demystified
Some IDEs (such as FlashDevelop) will add
CONFIG::DebugandCONFIG::Releaseto the build configuration for you