I am currently reading Richard Grimes’ Fusion WorkShop and in the
article he talks about method inlining used by the runtime to optimize execution. I have read this behavior of the CLR but I have never read a way on how to disable this, until he suggested to compile for debug mode. Logical since your method breakpoint is possible not to be hit if method inlining is enabled at debug mode.
I also found out another way to disable it through an ini file (same file name as application name just like the .config files) with the following content:
[.NET Framework Debugging Control]
GenerateTrackingInfo=1
AllowOptimize=0
AllowOptimize=0 disables method inlining obviously. I wonder what GenerateTrackingInfo settings is...
Posted
Apr 01 2005, 03:25 PM
by
jokiz