Have you ever wanted to know just how many exceptions your application is throwing? I'll bet there are more that you think there are. A nice feature of Visual Studio.NET is the ability to break into the debugger whenever any exception occurs without having to set a breakpoint.
- Click on Debug
- Choose Exceptions
- Click the radio buttons for:
- When an exception is thrown: Break into the debugger
- If the exception is not handled: Break into the debugger
This will help you see exactly what is going on under the hood and free you from having to try and set break points where you think an exception may occur.