Visual Studio Exceptions dialogs
Posted by: The Moth,
on 02 May 2012 |
View original | Bookmarked: 0 time(s)
Previously I covered step 1 of live debugging with start and attach. Once the debugger is attached, you want to go to step 2 of live debugging, which is to break. One way to break under the debugger is to do nothing, and just wait for an exception to occur in your code. This is true for all types of code that you debug in Visual Studio, and let's consider the following piece of C# code:3: static void Main()
7: int i = 0;
8: int r = 5 / i;
10: catch (System.DivideByZeroException)...