.NET: running a program with debugging information

It is known that compiling a program in "Debug" mode (rather than "release mode") can lead to poor performance.

But sometimes it is useful to have some debugging information. For example, when our program is running on a production server and an exception occurs, this will help to register the stack trace during the exception.

I realized that it’s possible, compiling the code in “release mode” and placing the * .pdb file along with the binary files in one folder.

Does anyone know if attaching the pdb file is related to any performance issue.

thank

+5
source share
3

, DLL Release. ,.NET VM , , . pdb .

, , , - .

+2
  • + .pdb
  • .pdb dll , , - . pdb.
+1

It does not adversely affect performance, but it detects a security problem that you may not want. When debugging symbols, it is useful to grab a beautiful glass when an exception occurs, but this should not be your default ship mode.

0
source

All Articles