Enable and disable “Step into” debugging on certain project in a Visual Studio solution

前端 未结 7 1489
忘了有多久
忘了有多久 2021-01-01 13:13

I have a Visual Studio solution with four C# projects in it. I want to step into the code of a supporting project in the solution from my main project, but when I use the \"

7条回答
  •  心在旅途
    2021-01-01 13:47

    If you have the source code for the dll's into which you are trying to step into, do the following:

    1. Click on the project in which these dll's are added as reference and remove them.
    2. Add the Project(s) corresponding to the dll(s) to the solution
    3. Right click on the project -> Add Reference -> Choose the newly added Project(s).

    Now set the break point and debug the code.. You will be able to step into the code.

    The reason for the issue is because you program is still referencing the old dll (without the source code) as it has been added to your project as a reference. Once you remove that dll and add the Project (Source code of the dll) of the dll, Visual studio will be able to step into your code.

提交回复
热议问题