简体   繁体   中英

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.

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.

ProjectA.pdb添加到您引用DLL的文件夹中,Visual Studio应该选择调试符号并自动进入。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM