Access the StackTrace when deploying in Release mode

后端 未结 1 1008

I\'m not entirely sure if the StackTrace does not work correctly when deploying in release mode, however, we want to log all the exceptions so we can make bug tracking easie

相关标签:
1条回答
  • 2020-12-20 17:52

    You would need to deploy your .pdb symbol files in order to do that in Release mode (and possibly turn off some optimisations, which may or may not be acceptable).

    Related SO questions:

    • Display lines number in Stack Trace for .NET assembly in Release mode

    • How to generate PDB’s for .net managed projects in release mode? (cheers, Nick)

    • Print stack trace information from C#

    • Is showing the Exception StackTrace useful in a RELEASE assembly or only a DEBUG .dll

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