C# – Visual Studio 2010 Automatic Attach To Process

cvisual studio 2010wcf

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

MainUI, WCFService, BLL and DAL

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.

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.

Thanks

Best Answer

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.

Related Topic