Welcome to MSDN Blogs Sign in | Join | Help

Sara Ford's Weblog

My adventures embracing open source on CodePlex and at Microsoft

News

    • Did you know... All author proceeds go directly to sending Hurricane Katrina survivors to college.

      Microsoft Visual Studio Tips book

      Recent Entries

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: ,
Posted: Monday, July 28, 2008 3:00 AM by saraford

Comments

Mike M said:

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.

# July 28, 2008 10:03 AM

Serge Wautier said:

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

# July 28, 2008 10:57 AM

Catto said:

Hey Now Sara,

Happy B-Day! Keep up the great work.

Thx 4 the info,

Catto

# July 28, 2008 7:35 PM

kamii47 said:

Hi Sara,

Happy birthday and Very Very Nice Post.

# July 29, 2008 2:39 AM

Visual Studio Hacks said:

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

# July 29, 2008 9:09 PM

Nigel said:

Wonderful!  Extremely useful tip should one need to access multiple layers together.  Thankyou Sarah and Happy Birthday.

# August 12, 2008 6:57 AM

dave boyle said:

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

# August 13, 2008 11:29 AM

Brunis said:

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

# August 29, 2008 9:20 AM

ramin said:

hi sara happy birth

can help me about asp cods.

# September 2, 2008 10:23 AM

xjb said:

# January 12, 2009 8:14 PM
New Comments to this post are disabled
Page view tracker