You can disable the optimizations in runtime using an .ini file: http://msdn.microsoft.com/en-us/library/9dd8z24x.aspx
Enter the following text into you .ini [for example Explorer.ini]
[.NET Framework Debugging Control]
GenerateTrackingInfo=1
AllowOptimize=0