Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I debug a project from another solution in Visual Studio?

I created a .NET solution 1 that consists of a project A and a project B. My solution also refers to a DLL only (project C) that is not included in my solution 1 but in a solution 2.

Sln 1 with project A and B with a reference to the DLL of project C Sln 2 with project C

I would like to debug my C project from my solution 1. How can I do that without including the source code of my project C in my solution 1?

In fact my project C is the framework of the my company and is developed by another team. I am able to get the source but not edit

like image 734
Bastien Vandamme Avatar asked Aug 17 '11 13:08

Bastien Vandamme


1 Answers

If you have Just My Code disabled (under Tools -> Options -> Debugging, called Enabled Just My Code), you can step into other libraries outside your solution and VS will prompt you to load the sources for it. You can also open the source for C, set a breakpoint, and if the sources match the symbols, it should be able to stop at that breakpoint.

like image 175
Jimmy Avatar answered Oct 07 '22 22:10

Jimmy