Show line number in exception handling

后端 未结 5 1663
独厮守ぢ
独厮守ぢ 2020-12-01 10:52

How would one display what line number caused the error and is this even possible with the way that .NET compiles its .exes?

If not is there an automated way for Exc

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-01 11:33

    If you use 'StackTrace' and include the .pdb files in the working directory, the stack trace should contain line numbers.

提交回复
热议问题