How do I allow breaking on 'System.NullReferenceException' in VS2010?

I have a VS 2010 C# .NET 4 project. The issue is that the program is not breaking on 'NullReferenceException' errors during debugging.

The output window will display the following:

A first chance exception of type 'System.NullReferenceException' occurred in myProgram.exe

...but the debugger will just exit out of the function and continue running the rest of the program.

How do I change this behavior so that the debugger will break on these exceptions?


去调试 - >例外 - >搜索NullReferenceException并检查“抛出”复选框。

链接地址: http://www.djcxy.com/p/4802.html

上一篇: DbContext.saveChanges()中的NullReferenceException

下一篇: 我如何允许在VS2010中打破'System.NullReferenceException'?