2007-12-10

How to turn of JIT optimizations on a release compiled exe

Basically create a ini file with the same name as the exe with the following content

[.NET Framework Debugging Control]
GenerateTrackingInfo=1
AllowOptimize=0

Perhaps if an unrecoverable errors occurs in a program, it can create the ini file and restart the application. The user can the redo the action(s) to create the error, and a full-stack trace can be created.

No comments: