Search code examples
c#visual-studiovisual-studio-2008debuggingvisual-studio-2008-sp1

How do I reset Visual Studio so that it once again searches for source files of DLLs while debugging?


In the process of debugging my WPF project, I regularly encounter thrown exceptions. When these exceptions fire, if the exception is thrown by my application's code, I am able to browse the source code. All is well.

HOWEVER, if an exception is thrown by code hosted in another assembly (that we built), I am unable to browse for the source code. I was at some point in the past prompted to browse for the original source code file, but "canceled" the dialog. Now, I want a do-over.

Is there a way to grant me a do-over on locating these source files? I'm no longer prompted for them. I assume Visual Studio stores my source code browsing preferences somewhere, but I don't know where. I get the idea this do-over is possible, but I don't even know the words to search for on Google to get what I want.

What should I do?


Solution

  • In the Solution Explorer right click on the solution and go to PropertiesCommon PropertiesDebug Source Files.

    Then on the right hand side there is a list for "Do not look for these source files:". Deleting the entry from that list should prompt you for the source location again.