title: How can you tell programmatically if a Flex App is running in debug mode?
body: <p>Is it possible to write code in a Flex application that will only be run in a debug build, or when running through the debugger?
  Does Flex provide a way to actually remove code entirely from release builds, like C-style #defines?</p>
  
  <p>The app is not necessarily running in a web page.</p>