I have a web application project which references a class library project dll. The class library resides in a different solution.
I want to debug the class library by setting breakpoints in its own project. Upon googling it, I did the following:
- Unchecked "Enable Just My Code" in the debugging options.
- In the Debug-->Options-->Symbol tab, I deleted the locations other than Microsoft symbol services. Deleted the cache directory and emptied the cache.
By the way, I am hosting the web application on IIS and the debugger attaches the the IIS process.
So the problem is, with this configuration, when I start debugging and look at the Modules window, the symbols for the class library are loaded from a directory starting with "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files...". But that is wrong. It should be the directory of the class library.
In order to fix it, I tried deleting the pdb at that location. It seemed to work at first sight, VS loaded the right pdb from the right location. But as I rebuilt the class library so that my breakpoints will be in effect, the symbol location again reverted back to the Temp ASP.NET Files directory.
How can I achieve the right result?