C# release version has still .pdb file

后端 未结 5 1870
离开以前
离开以前 2020-11-28 22:56

I want to deploy the release version of my application done in C#.

When I build using the Release config, I still can see that .pdb files a

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-28 23:38

    You don't have to ship the .PDBs with your release deployment, but they are useful to keep around - for example you can remotely debug the code running on a different machine using the PDBs on your machine to get the line numbers of where exceptions occur.

    Without the use of the .PDBs, line numbers and file names are not included in stacktraces so it makes it much harder to debug them.

提交回复
热议问题