I have a DLL (the Sitecore Kernel) that I decompile using DotPeek. I am setting the Environment Variable COMPLUS_ZapDisable to 1 before launching Visual Studio, and added the following .ini file:
[.NET Framework Debugging Control]
GenerateTrackingInfo=1
AllowOptimize=0
for each of the .pdb files.
NOTE: all of the generated .pdb and .ini are in the /bin folder of my application.
Sometimes it works, and I can step-in all methods and add watches; most of the time, however, it doesn't and the amount of methods I can step in or add breakpoints to seems arbitrarily limited.
Anyone has any suggestion?