This is a very reliable solution that helps me to inspect local variables while debugging OOB SharePoint DLL using Reflector:
1. Create a file with the following content:
[.NET Framework Debugging Control]
GenerateTrackingInfo=1
AllowOptimize=0
2. Save it to the GAC, within each folder of dll you want to disable its optimization, and name it with the name of the dll, with the extension ".ini".
3. Success!
Update:
It seems that I've forgotten another important thing that has to be enabled.
1. Go to the registry and in the path HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\
2. Create a variable with a name COMPLUS_ZAPDISABLE and set it set it to 1:
No comments:
Post a Comment