Kishor T
Kishor T

Reputation: 300

pdb file not generated in visual studio 2015

I am developing an application using C#-MVC with Entity Framework(database first) VS 2015

I created a separate project for Data Layer Access. When I build this project in either DEBUG or RELASE mode, a debug file is not getting generated i.e. ".pdb" file.

Please let me know, how can I generate this .pdb file for my project?

Upvotes: 10

Views: 16341

Answers (2)

rjacobsen0
rjacobsen0

Reputation: 1445

Update for Visual Studio 2022. Go to Properties | Build | General. Notice the dropdown under Debug symbols. build debug symbols

For all compiler versions starting with C# 6.0, there is no difference between pdbonly and full. Choose pdb file and then choose either "current platform" or "portable across platforms".

The compiler will create a .pdb file in the same directory where the compiler creates the output file (.exe or .dll). The .pdb file has the same base file name as the name of the output file.

Upvotes: 0

Jack Zhai
Jack Zhai

Reputation: 6436

(1)Like this document about how to disable the pdb file, please check your project property "Debug Info" option and output path:

enter image description here

(2)Please also check your build configuration manager, all projects use the default Debug or Release option.

(3)If still no help, you'd better to collect the detailed output/compiled information, and make sure that which dll file or pdb generated this issue.

For breakpoint issue, please enable the Microsoft symbols server under TOOLS->Options->Debugging->Symbols.

Upvotes: 28

Related Questions