Stack trace with incorrect line number

后端 未结 1 1532
梦毁少年i
梦毁少年i 2021-01-05 05:13

Why would a stack trace show \"line 0\", but only for one frame in the stack trace?

eg.

...
at System.Data.SqlClient.SqlCommand.Exec         


        
1条回答
  •  孤街浪徒
    2021-01-05 05:58

    This was indeed down the the inlining of them method as Eric suggested.

    I managed to reproduce the original error locally, but only when compiling in a release build. As I had the PDBs, I could step through the code and find the problem.

    0 讨论(0)
提交回复
热议问题