How can I include line numbers in a stack trace without a pdb?

前端 未结 4 1613
孤城傲影
孤城傲影 2020-11-29 03:23

We are currently distributing a WinForms app without .pdb files to conserve space on client machines and download bandwidth. When we get stack traces, we are getting method

4条回答
  •  广开言路
    2020-11-29 03:50

    Not the appropriate answer to your question but i have a suggestion. You could incorporate a logging mechanism and get these log files alongside the stack traces. If you include line numbers in your log messages, you can combine the logging information with your stack trace manually.

    If you don't want to take up much space you can use limited size log files, this way only the most recent log messages will be kept.

    We use log4net library for our logging needs, I recommend you take a look.

提交回复
热议问题