When exception is being hit in Visual Studio debugging, hovering the exception reveals null

72 Views Asked by At

For some reason, when attempting to debug an application, the exceptions themselves show as null. Initially, I didn't have the SqlException catch section, but I did see that it said it had thrown a SqlException, so figured I'd add to look and the result appears the same.

I did previously remove Visual Studio and reinstalled it (plus the 1.1 asp.net core SDK) so that's the oddball difference between now and before. It is running in Debug.

How do I get it to return the actual error messages so I can debug?

enter image description here

1

There are 1 best solutions below

2
Arthur Attout On BEST ANSWER

If your cursor is on the catch clause, the exception will be null. Hit F10 to see it's content.

enter image description here

enter image description here