的Visual Studio 2013 - 如何在解决方案中调试项目 [英] Visual Studio 2013 - How to debug a project within a solution

查看:236
本文介绍了的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).

这篇关于的Visual Studio 2013 - 如何在解决方案中调试项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆