C19 C19 - 8 days ago 4
C# Question

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

same GitHub issue here.

the solution of
https://github.com/kerryjiang/WebSocket4Net
did generate two files


WebSocket4Net.dll
WebSocket4Net.pdb


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

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.