G
Greg Smith
Hi, is there a way to tell in code if you are in Debug|Release mode?
I have an error handling routine that sends me a e-mail if an error is
caught. This is great when the users are working with the release version
of the app but not when developing in the IDE. I would rather turn the
e-mail into a MessageBox. What I would like to do is something like this:
private void MyErrorHandler()
if( <in debug mode> )
MessageBox.Show("error info");
else
SendErrorEmail("error info");
Any help is greatly appreciated.
I have an error handling routine that sends me a e-mail if an error is
caught. This is great when the users are working with the release version
of the app but not when developing in the IDE. I would rather turn the
e-mail into a MessageBox. What I would like to do is something like this:
private void MyErrorHandler()
if( <in debug mode> )
MessageBox.Show("error info");
else
SendErrorEmail("error info");
Any help is greatly appreciated.