get error line number of code using try-catch not work on server

前端 未结 0 1052
难免孤独
难免孤独 2021-02-06 13:42

I want to get line number of code which cause error. I have used several methods

public static int LineNumber(this Exception e)
{
    int linenum = 0;
    try
            


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题