I want to debug Microsoft code on SharePoint site.
I download .NET Reflector Visual Studio Extension so I can step into Microsoft code, but when I try to get the value of some variables - I get the error: "Cannot obtain value of local or argument <this> as it is not available at this instruction pointer, possibly because it has been optimized away."
I try to cancel the optimization, I saw what Cameron MacFarland wrote here, So I created a file with the commands that open VS without JIT optimizations. As for the second action - I do not know how to do it when it comes to a SharePoint application that IIS is running it.
How to achieve this?
EDIT: My question is basically: How to disable code optimization when the code is run by IIS?