How can I force vshost.exe to suppress JIT optimization on module load

344 views Asked by At

To step through .Net reference source code you have to:

  • disable NGEN (start VS with COMPLUS_ZapDisable=1 environment)
  • disable JIT optimization ('Suppress JIT optimization' debugger setting and disable vshost.exe)
  • enable source server support

What bothers me is that I have to disable vshost.exe because of these drawbacks. vshost.exe preloads several assemblies ignoring the 'Suppress JIT optimization' debugger setting. Those assemblies are then optimized causing stepping into them being not an easy task.

Does anybody know how I can force vshost.exe to disable those optimizations while preloading the assemblies?

Thanks a lot!

0

There are 0 answers