简体   繁体   English

从一个解决方案调试到另一个解决方

[英]Debugging from one solution to another

I have always wondered how I should do this. 我一直想知道我该怎么做。 Lets say I have a solution A and a Solution B. Lets say Solution A is the application I am working on. 假设我有解决方案A和解决方案B.让我们说解决方案A是我正在处理的应用程序。 Lets say solution B is the framework for the application. 让我们说解决方案B是应用程序的框架。

I have added the references of all the projects in Solution B in solutuon A. Lets say if I want to debug and someimes you may even want to step through the classes in Solution B, how is this possible. 我在Solutuon A中添加了解决方案B中所有项目的引用。让我们说如果我想调试和某些时候你甚至可能想要逐步解决方案B中的类,这怎么可能。

I hope I have made myself clear. 我希望我已经说清楚了。

If you build solution B as a library it will build dll's and pdb's for each project for you. 如果您将解决方案B构建为库,它将为您为每个项目构建dll和pdb。

You can add references to these dlls in solution A. The pdb's provide all the debug information for you, so as long as they're in the same directory as the dlls, when you step into solution B's classes in the Solution A debugger it should automatically find the source code for you. 您可以在解决方案A中添加对这些dll的引用.pdb为您提供所有调试信息,因此只要它们与dll位于同一目录中,当您在Solution A调试器中进入解决方案B的类时,它应该自动为您找到源代码。

当我想要进行这种调试时,我将解决方案B中的项目(不是dll)添加到解决方案A.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在调试时阻止解决方案资源管理器隐藏 - Prevent solution explorer from hiding when debugging 从解决方案克隆一个项目 - Clone One Project from Solution Visual Studio:如何使一个解决方案依赖于另一个解决方案? - Visual Studio: How to make one solution depend on another? 在同一解决方案中,如何使用调试从测试项目进入Web应用程序中的类? - How do you use debugging to step into a class in a web application from a test project in the same solution? 使用Visual Studio进行跨解决方案调试 - Cross-solution debugging with Visual Studio 是否可以从解决方案中的另一个报告项目或另一个文件夹加载SSRS rdl文件的图像? - Can I load images for SSRS rdl file from another report project or another folder within solution? 一个解决方案下的许多网站 - many websites under one solution 我可以在一个解决方案中的其他项目中使用主项目中的类和控件吗? - Can I use classes and controls from main project in other projects within one solution? 在调试模式下在解决方案中启动另一个项目 - Starting another project in the solution in Debug mode 通过 ReSharper 将类型从一个项目移动到另一个项目? - Move type from one project to another via ReSharper?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM