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

后端 未结 1 2059
孤街浪徒
孤街浪徒 2020-12-17 11:07

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 displ

1条回答
  •  感动是毒
    2020-12-17 11:34

    Go to Debug -> Exceptions -> Search for NullReferenceException and check the "thrown" checkbox.

    0 讨论(0)
提交回复
热议问题