C19 C19 - 2 months ago 10
C# Question

VS built dll without debug info. even set to include debug info

same GitHub issue here.

the solution of
did generate two files


but WebSocket4Net.dll didn't contain Debug Table.[checked with PE viewer].thus no pdb file location info is contained. thus vs debugger refuse to load the pdb. even manually.

The catch is;

  • the project is set to debug.

  • optimize is off.

  • output debug info is set to full.

Is there anything else need to be set?

C19 C19
Answer Source

Oh! I tricked myself. I copied the dll and pdb to my project's output dir. but every time the my project build. it would be overwritten by project's dll. thus I would see a dll without debug info. Hope this would help someone. There's no other config needed. check the simplest assumptions that taken for granted.