.PDB file not getting generated
Asked Answered
E

3

8

I have a project which I need to debug in another solution. I'm trying to generate a PDB file, but its not getting generated. However, a .PSSYM file is getting generated. Things that I have already tried:

  • Set the Configuration to Debug
  • Set Build > Advanced > Debug Info > FULL
  • Clean and Rebuild
  • Restart Visual studio
  • Rename the PSSYM to PDB extension

Why is it not getting generated? And what is this PSSYM file?

Eliseoelish answered 5/3, 2018 at 18:19 Comment(2)
.pssym is generated probably you have post sharp running post buildAril
Possible duplicate of pdb file is mising after PostSharpAril
E
3

For me, Postsharp was messing with it, even after updating it. I set the Conditional Compilation Symbols to "SkipPostSharp" for my project and my PDB got generated.

Eliseoelish answered 5/3, 2018 at 19:34 Comment(0)
M
12

Under Build > Advanced > Debug Info, change Debugging Info to PDB-Only.

This will generate a PDB file for your project.

Martin answered 5/3, 2018 at 18:25 Comment(0)
E
3

For me, Postsharp was messing with it, even after updating it. I set the Conditional Compilation Symbols to "SkipPostSharp" for my project and my PDB got generated.

Eliseoelish answered 5/3, 2018 at 19:34 Comment(0)
E
0

Edit the csproj file of the project you want to debug and make sure the following line is there.

<DebugType>pdbonly</DebugType>

Note 'pdbonly'

Equalitarian answered 5/1 at 17:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.