When debugging C# with Visual Studio, is it possible to see WHICH object reference on a given line of code caused a NullReferenceException?
I have what seems like an odd situation where, occassionally, when running a debug build of an application from Visual Studio, I will get a NullReferenceException at a certain line.
Visual Studio will pop up the exception assistant box pointing at the line, but none of the 3 object references used on that line are null at that point.
The line is:
myClassInstance.myMethod(myOtherClassInstance.IPAddressInstance.ToString());
Both of my class instances are non-null, as is the IPAddress instance (which has its intended value).