Visual Studio 2003 Debugger and Execptions
I have a big code base that has been developed for a while. Unfortunately, they did not use exceptions at all for floating point divde by zero. Fortunately, when I was using visual studio 6.0 I was able to get the debugger to jump in when such an exception occurs.
The problem is now we are migrating to visual studio 2003. There is an option to have the debugger jump in when a floating point divde by zero occurs (debug->execeptions or crtl+alt+e), but it does not seem to be working, atleast for a blank console application. Could this be because the application is a console application and not a win32 application? Or can we not rely on the debugger.
This is the simple program I used to test:
int main()
{
double x = 5.0;
double y = 0.0;
double z = x/y;
return 0;
}
What should occur is that the debugger should do something when it see x/y by jumping in. I have the option enabled: c000008e Floating-point division by zero and I set it to break into the debugger if the exception is not handled.
I know that we should be using try catches, but this is to test and algorithm and once again the code base is huge.

