Visual Studio 2010 自动附加到进程 [英] Visual Studio 2010 Automatic Attach To Process

查看:39
本文介绍了Visual Studio 2010 自动附加到进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Visual Studio 2010,我的应用程序有一个多层架构师,

I am using visual studio 2010, my application has a multiu layer architect,

MainUI、WCFService、BLL 和 DAL

MainUI, WCFService, BLL and DAL

我的 MainUI 与 WCF 通信,WCF 进一步与 BLL 和 DAL 通信,每当我需要调试 BLL 和 DAL 时,我首先需要将 WCF 作为进程附加到 Visual Studio 中(每次).我怎样才能避免这种麻烦.

My MainUI communicated to WCF and WCF further communicates to BLL and DAL, whenever i need to debug BLL and DAL, i first need to attach WCF as a process in Visual studio(everytime). How could i can save myself from this hassle.

我如何设置 Visual Studio,使其自动附加到服务并轻松调试我的应用程序.

How could i set up visual studio in a way that i automatically attach to the service automatically and i could debug my application easily.

谢谢

推荐答案

为多项目启动配置您的解决方案.我为类似的应用程序执行此操作.VS 会自动启动 WCF 和客户端,我可以在其中设置断点.

Configure your solution for multi project start up. I do this for a similar application. VS launches the WCF and client automatically and I can set break points in either.

启动顺序是您选择项目的顺序.

The start-up order is the order in which you select the projects.

右键单击您的解决方案并选择选择启动项目".然后选择多个启动项目并选择项目.

Right mouse click on your solution and select 'choose startup projects'. Then select multiple startup projects and select the projects.

这篇关于Visual Studio 2010 自动附加到进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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