Debug Database Debug Files in Release Folder

I switched the configuration of my build solution to release mode and now has an exit in the "Vacation" folder, and not in "Debug".
But still, the output from Release contains Debug Database files. Why is this? When should I store them, when and how should I get rid of them?

+6
source share
2 answers

Debug database files (.pdb or “character files”) contain debug information, such as line numbers, to facilitate debugging.

If there is a trace, the exception stack will contain the full path to the source file and line number.

It is up to you whether to distribute them with your application.

To avoid creating pdb files in the Release configuration:

  • Go to your project.
  • In the "Build" tab, select "Advanced" (by booklet). enter image description here

  • For "Debug Info" select "None".

Please note that this will not affect link assemblies (their .pdb files will be copied to your project output folder.

More about symbols here: Program database files (C #, F # and Visual Basic)

+14
source

I think it wouldn’t matter if you deploy your application without these software debug databases, as these files can be large.

0
source

Source: https://habr.com/ru/post/892732/


All Articles