的Visual Studio 2013 - 如何在解决方案中调试项目

的Visual Studio 2013  - 如何在解决方案中调试项目

问题描述:

我有一个解决方案,我称之为MySolution。内的MySolution我有两个项目。一个是图书馆和其他的控制台应用程序。如果我在图书馆一行代码定义一个断点,运行与F5(调试)控制台应用程序中的断点获取的忽略。我怎么调试我库代码?我不能直接运行库中的代码,因为它是一个库。

I have a solution, I'll call it "MySolution". Within the "MySolution" I have two projects. One is a library and the other a console application. If I define a breakpoint at a line in the library code, running the console application with F5 (Debug) the breakpoint get's ignored. How am I supposed to debug my library code? I can't directly run the library code because it is a library.

删除引用到库项目,然后再重新-add它作为一个项目引用(而不是通过选择DLL)。

Remove the reference to the library project, then re-add it as a project reference (not by selecting the DLL).