I want to use the RequireHttpsAttribute to prevent unsecured HTTP requests from being sent to an action method.
C#
[RequireHttps] //apply to all acti
As Joel mentioned you can alter the compilation by using the #if !DEBUG directive.
#if !DEBUG
I just found out that you can alter the value of the DEBUG symbol in the web.config file compilation element. Hope that helps.