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: VS2005Tip,VS2008Tip

Comments (8)

  1. lorenzo.barbieri says:

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

    Congratulations!!!

    Lorenzo

  2. That’s a handy DYK.  Congrats on 7 years.

  3. Rob says:

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

    Congrats!

    Go, Sara, go!

  4. jane says:

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

  5. GregM says:

    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.

  6. yuriy-k says:

    Sara!

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

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