Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VisualStudio / C#: Debugging imported DLL

I have a project that imports a DLL (written by me). Sometimes when an exception is raised within a method in the DLL, the host project opens a tab and let me see the code within the DLL. I can also put breakpoints within it.

But this behavior seems quite random, I cannot have it on purpose and not always works. Plus, I can't see the file name in the project explorer window.

Any help on debugging DLLs? Thanks

like image 219
pistacchio Avatar asked Nov 29 '22 20:11

pistacchio


1 Answers

The enhanced debugging (for a dll not in the current solution) depends largely on whether you have the debugging symbols file (.pdb) in an obvious location - in particular, next to the dll itself. You can also load symbols manually from the modules window (when debugging, Debug -> Windows -> Module, right-click, Load Symbols From...)

like image 109
Marc Gravell Avatar answered Dec 08 '22 00:12

Marc Gravell