Some simple lines of code below:
string[] countries = new string[1]; string[] cities = new string[1]; countries[0] = "USA"; countries[1] = "England"; cities[0] = "Chicago";
When Visual Studio throws a null exception, it refers to the following line, not the line where the exception occurred:

I know that the line number is correct when you view the details of the problem. However, I often spend more time than looking for the wrong variables, because the visual representation of the exception was incorrect.
Is it possible to configure VS or do something else to solve this problem? Is this a known issue or is it just me?
source share