How can I disable compiler optimization in C#?
before you start to change the settings of the project which might find its way to production verify that your solution configuration is set for Debug and not Release.
I had the same issue and then I saw that it was set to Release by mistake...