Finding bugs and using call stacks

When you have a bug in your code that causes a crash, a thrown exception, and so on, Visual Studio will attempt to halt execution of code and will allow you to inspect the code. The place at which Visual Studio halts won't always be the exact location of the bug, but it can be close. It will at least be at a line of code that doesn't execute properly.