放置断点并调试其他项目

时间:2022-04-17 11:16:22

I have an ASP.NET MVC 3 Solution(C#) Containing multiple projects. There is a services project containing services that I am using from my main UI Project. When debugging I can only debug the main starting project. Is there a way to place breakpoints in my other project and debug them at runtime when my main project is using them?

我有一个ASP.NET MVC 3解决方案(C#)包含多个项目。有一个服务项目包含我在主UI项目中使用的服务。调试时我只能调试主启动项目。有没有办法在我的其他项目中放置断点并在我的主项目使用它们时在运行时调试它们?

Hope I was clear on my question Thank you very much for any answer

希望我对我的问题很清楚,非常感谢你的回答

2 个解决方案

#1


0  

Yes you should be able to just place breaking points in the other project. Make sure you are in Debug mode, and also check your other project's web.config or app.config file and make sure that debug="true" and not "false."

是的,您应该能够在其他项目中放置突破点。确保您处于调试模式,并检查其他项目的web.config或app.config文件,并确保debug =“true”而不是“false”。

#2


0  

yes you can!

build your other projects and place .dll and .pdb files in your running projects references folder where you place other projects reference files).

构建您的其他项目并将.dll和.pdb文件放在正在运行的项目引用文件夹中,您可以在其中放置其他项目引用文件)。

place break point in reference calling method in your running project and press f11 when it breaks. now you will be able to debug other project files

在正在运行的项目中的引用调用方法中放置断点,并在它休息时按f11。现在您将能够调试其他项目文件

#1


0  

Yes you should be able to just place breaking points in the other project. Make sure you are in Debug mode, and also check your other project's web.config or app.config file and make sure that debug="true" and not "false."

是的,您应该能够在其他项目中放置突破点。确保您处于调试模式,并检查其他项目的web.config或app.config文件,并确保debug =“true”而不是“false”。

#2


0  

yes you can!

build your other projects and place .dll and .pdb files in your running projects references folder where you place other projects reference files).

构建您的其他项目并将.dll和.pdb文件放在正在运行的项目引用文件夹中,您可以在其中放置其他项目引用文件)。

place break point in reference calling method in your running project and press f11 when it breaks. now you will be able to debug other project files

在正在运行的项目中的引用调用方法中放置断点,并在它休息时按f11。现在您将能够调试其他项目文件