I am developing an ASP.NET web forms application. I have many functions that throw some exception on some particular situation. But there are a lot of functions. I don't want to remove and add throw ex;
statement again and again when updating my application. So, is there any way I can check if the project is in debug mode? (i.e. to check if debug="true"
in web.config).
try{
//some code
}
catch (Exception ex)
{
if(//----what condition to check debug mode?----)
throw ex;
}