FGA
FGA

Reputation: 101

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

Upvotes: 10

Views: 11658

Answers (2)

codes_occasionally
codes_occasionally

Reputation: 9566

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.

Upvotes: 3

JaredPar
JaredPar

Reputation: 754565

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.

Upvotes: 10

Related Questions