Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I stop Visual Studio from creating pdb debug folders?

I'm not sure what changed, but, within the directory where my solution is Visual Studio is creating debug folders.

Here are some of the folders and files being created:

System.Web.Http.pdb/EA80649BB72046E989099D4826726FH83/System.Web.Http.pdb
System.Web.pdb/CG58649BB72046E989099D4826726BHEWL/System.Web.Http.pdb
System.Transactions.pdb/FD28649BB72046E989099D4826726BV8F/System.Web.Http.pdb
System.Xml.pdb/5NIL649BB72046E989099D48267267CD1/System.Web.Http.pdb

Is there a setting I can change to stop these folders from being created? It's cluttering up my solution directory.

like image 887
Justin Helgerson Avatar asked Jan 29 '13 23:01

Justin Helgerson


People also ask

Why is there a PDB files in release folder?

PDB files help you and the debugger out, making post-mortem debugging significantly easier. You make the point that if your software is ready for release, you should have done all your debugging by then.

What are PDB debugging files?

pdb file holds debugging and project state information that allows incremental linking of a Debug configuration of your app. The Visual Studio debugger uses . pdb files to determine two key pieces of information while debugging: The source file name and line number to display in the Visual Studio IDE.

Do I need PDB files in production?

PDBs are required for debugging and store debugging information and they are created when you compile the application. Unless you plan to debug in production there is no need and you should aim to deploy in release mode.


3 Answers

In Debug -> Option and Settings -> Debugging -> SymbolsSymbols -> Cache symbols in this directory: try set path something like C:\Users\...\AppData\Local\Temp\SymbolCache

or/and set _nt_symbol_path _NT_SYMBOL_PATH=srv**http://msdl.microsoft.com/download/symbols

Troubleshooting Symbol Problems: run vsperfreport /debugsympath at a command line to display a complete list of the locations where profiler components are loading symbol information and whether the symbol files that are used match the files that your project is using.

This topic describes how find and specify the symbol files.

like image 139
sergmat Avatar answered Oct 19 '22 02:10

sergmat


I just had this problem. Turned out the network share that I had selected for symbol cache was offline/unavailable...

like image 31
Benjol Avatar answered Oct 19 '22 02:10

Benjol


I’ve encountered this phenomenon too. After many try, I’ve solved it very simply, just by unchecking the Microsoft Symbols Servers checkbox in Tools/Options, Debug/Symbols.

like image 21
Didier Baille Avatar answered Oct 19 '22 00:10

Didier Baille