views:

28

answers:

2

Hallo!

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 VS 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.

Any help?

+1  A: 

Delete the hidden .suo file in your solution directory.

Hans Passant
Would that nuke all of the other settings for the solution?
FrustratedWithFormsDesigner
Just IDE state, you don't lose the project settings nor Tools+Options settings. Rename it instead of deleting it if you worry about it.
Hans Passant
A: 

You may have to reset visual settings, you can do this by clicking "Tools", Import Export settings.

For default source path, Make sure your pdb files are replaced correctly where visual studio is adding your reference dll from, pdb file contains path of the source code, its not visual studio. You must rebuild your project (referenced assemblies one) and manually delete pdb files in your debugging project before adding references. It may be bug in Visual studio in case if the files are locked or due to some reason pdb files may not be updated.

Akash Kava