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... How to get the Find Source dialog back instead of the "There is no source code available" message? - #315

Today marks my 7th (!) year at Microsoft. Wow.

To have only known about this back in the day... hopefully this brings someone the joy I missed out on.

Sometimes you're debugging and VS doesn't know where the source file is located. VS prompts you with the following dialog, asking you to specify the location of the sources.

Find Source dialog box

And let's say you hit cancel accidentally.

Now you're prompted with the "There is no source code available for the current location." Argh!

Show Disasembly prompt

So, you'll hit stop and try again, thinking that the Find Source dialog will come back again....

but alas, VS tells you there's no source code available, even though you want to tell VS where to look again. ARGH!

Go to Solution Properties (not project properties). And under Common Properties - Debug Source Files, there's the Do no look for these source files edit box.

Solution Property Pages

Delete the line that corresponds to the file.

And now you'll see the Find Source. Only took how many years at Microsoft to finally learn where this option was hiding?! =)

Technorati Tags: ,
Posted: Wednesday, September 17, 2008 3:00 AM by saraford

Comments

lorenzo.barbieri said:

> Today marks my 7th (!) year at Microsoft. Wow.

Congratulations!!!

Lorenzo

# September 17, 2008 6:17 AM

Peter Ritchie said:

That's a handy DYK.  Congrats on 7 years.

# September 17, 2008 11:15 AM

Rob said:

Wow! Seems like forever ago and half a contenant away to me.

Congrats!

Go, Sara, go!

# September 17, 2008 1:26 PM

jane said:

Congratulations on making 7 years at Microsoft.  This is great.  Wonderful and awsome.  Congratulations again.

# September 18, 2008 8:11 AM

GregM said:

Thank you.

Thank you.

Thank you.

Thank you.

Thank you.

Did I remember to thank you?

I've wanted to know this for as long as I can remember.

# September 18, 2008 1:54 PM

yuriy-k said:

Sara!

I can't believe it! "Tip#315" is so useful!

Me and all our guys saing - "Thank You Sara!"

# September 29, 2008 3:06 AM

xjb said:

# March 2, 2009 8:18 PM
New Comments to this post are disabled
Page view tracker