C# Exceptions Not Giving Line Numbers

后端 未结 5 1984
攒了一身酷
攒了一身酷 2020-12-03 09:55

I am using C# having come from a Java background - I have an exception but it does not tell me the line number - Just the method name.

Is that usual?? Is it down to

5条回答
  •  抹茶落季
    2020-12-03 10:06

    Make sure the PDB files of your application are deployed with the application. The PDB files are the files that is used by the CLR to determine the source code line numbers.

提交回复
热议问题