title: How I can check debug mode in MVC cshtml page
body: <p>How I can check debug mode in MVC cshtml page? this code not working in cshtml page.<br><pre>@{
  bool isRelease = false;<br>#if DEBUG<br> isRelease = false;<br>#else<br> isRelease = true;<br>#endif<br>}
  @{
  if(isRelease)
  { &lt; p > result1 &lt; /p > }
  else
  { &lt; p > result2 &lt; /p >}
  }</pre> <br>application display "result 2" but it must display "result 1"</p>