Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 132
    +1 Its very painful to see ONLY that "Object reference not set to an instance of an object" in the logs. You feel really helpless. :-) Commented Jun 4, 2011 at 11:51
  • 1
    For the last part, there are Exceptions that don't come with Exception.Message. In function of what you do in the error handling part, you can get to have problems because of the Exception.Message. Commented Aug 20, 2012 at 8:48
  • 73
    It is very painful to see that I wrote code that essentially does the exact same thing that ToString() does. Commented Apr 29, 2014 at 20:31
  • 1
    @KunalGoel If the log comes from prod and you have no indication what the input was, then no, you can't just "debug through by turning on the CLR exception". Commented Apr 26, 2017 at 21:32
  • 2
    Note, it is the "default implementation of ToString"...(emphasis on "default")..it does not mean that everyone has followed that practice with any custom exceptions. #learnedTheHardWay Commented Apr 24, 2018 at 15:12