Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug a referenced DLL in a separate solution

I have a web project, A, that references a DLL, B, that I would like to debug. I have the DLL source code in a separate solution. Is it possible to step into the dll code without adding the dll project to my A solution?

Thanks!

FGA

like image 723
FGA Avatar asked Feb 03 '23 02:02

FGA


2 Answers

Yes it is. You will need to disable Just My Code to enable this scenario though

  • Tools -> Options
  • Go to the Debugger section
  • Uncheck "Enable Just My Code ..."

You may still have to manually load symbols but after that you will be able to step into your other source code.

like image 171
JaredPar Avatar answered Feb 11 '23 18:02

JaredPar


Have a look at this similar question: --> How to debug a referenced dll (having pdb)

Copy the .dll and .pdb files from your other solution into the bin/ folder of the web project that you're trying to debug. When you run it, it should let you step into the referenced code now. I just did this to debug a referenced membership provider and it worked.

like image 39
Pandincus Avatar answered Feb 11 '23 18:02

Pandincus