Partilhar via


Did you know… You can start debugging multiple projects? - #268

Happy Birthday Visual Studio Tip of the Day! Wow, what a difference a post a day makes. Thanks to everyone who has been reading the series. It’s been an extremely rewarding experience to see these tips help.  

And thanks for the motivation to continue writing. It takes me on the average 20-30 minutes to decide what tip to write, to capture the screenshots, and to add it to the queue. I refuse to do the math. I just don’t want to know. =D

I consider July 27, 2007 to be the kick-off day for Tip of the Day, since that’s when I posted #002 and started the consecutive series. #001 went out a few days earlier for us to get the RSS feeds ready to go. I wished Tip of the Day happy birthday while presenting at OSCON, even if it wasn’t the targeted audience. =D

If you are only using one project per solution, today’s tip may not mean too much to you.  But, if you have multiple projects, you can select which ones of them you want started under the debugger.

Right-click the Solution in the Solution Explorer, and select Properties.  Go to the Common Properties – Startup Project page (it’s the first page in the dialog).

You’ll see three radio buttons:

  • Current selection – whichever project had the inactive selection (i.e. whatever was selected previously) when you went to the solution property pages.
  • Single startup project – usually this is the first project you had in the solution, or the project that you manually set as the startup project
  • Multiple startup projects – and there was great joy.  When enabled, you can then pick and choose which projects to start (and make sure you choose Start and not Start without debugging)

image

And using the example above, when I hit F5, I get

image

Technorati Tags: VS2005Tip,VS2008Tip

Comments

  • Anonymous
    July 28, 2008
    Wow! This is a tip I would have paid for...I'm writting a lot of WCF apps lately and I'm always starting 2 projects manually - the service host and then client as a new debug instance. This tip just made things sooooo much easier. Thank you.

  • Anonymous
    July 28, 2008
    Hi Sara. Happy birthday and a thousand thanks for the great tips (such as today's!). Keep up with the good work.

  • Anonymous
    July 28, 2008
    Hey Now Sara, Happy B-Day! Keep up the great work. Thx 4 the info, Catto

  • Anonymous
    July 28, 2008
    Hi Sara, Happy birthday and Very Very Nice Post.

  • Anonymous
    July 29, 2008
    My latest in a series of the weekly, or more often, summary of interesting links I come across related to Visual Studio. DiveDeeper blog continues LearnVSXNow! with Multiple Tool Windows . Bruce Kyle (US ISV Developer Evangelism Team blog) announced the

  • Anonymous
    August 11, 2008
    Wonderful!  Extremely useful tip should one need to access multiple layers together.  Thankyou Sarah and Happy Birthday.

  • Anonymous
    August 13, 2008
    The tip's not of immediate usefulness but I'll keep an eye out here and let you know any I like. Happy Birthday

  • Anonymous
    August 29, 2008
    Regardless of what i set as startup project vs2k8 starts 7 webdev servers up.. and halts my machine for 5 minutes..  impossible to debug! :(

  • Anonymous
    September 02, 2008
    The comment has been removed

  • Anonymous
    January 12, 2009
    本篇包括tip261-tip270http://www.watch-life.net/visual-studio/visual-studio-2008-tip-day-27.html#261、按C...