Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I step through a referenced assembly in Visual Studio?

I have a referenced assembly that keeps failing when I call it. I have the source for this assembly in a large project, Project A. I've compiled it and have been using it in Project B. Unfortunately Project B keeps failing and the stack trace shows that it fails on Project A's assembly.

It seems like I have two options:

  • Add Project A to Project B, change all references to the assembly to the project. This seems like it'd be a lot of work.
  • Use some third party tool, like Reflector, to step through the assembly.

Is there any other way I'm missing it? Is there anyway to link the projects easily?

Sorry if this sounds naive. it is the first time I've run into it.

like image 737
chum of chance Avatar asked Dec 09 '22 09:12

chum of chance


2 Answers

if you have source code of project A

just include PDB file and assign referecne of the project A dll.

when you reach method of prject A press f11 which will take you to project A.

like image 83
Pranay Rana Avatar answered Jan 05 '23 00:01

Pranay Rana


Add ProjectA.pdb to the folder that you're referencing the DLL from and Visual Studio should pick up the debugging symbols and step in automatically.

like image 29
SLaks Avatar answered Jan 04 '23 23:01

SLaks