I know that setting COMPLUS_ZapDisable=1
will "disable debugging optimizations in Visual Studio," but I can't seem to find any references that tell me what that actually means.
The <comPlus> element of the <asp> element was introduced in IIS 7.0. To support and configure ASP applications on your Web server, you must install the ASP module. To install the ASP module, use the following steps. On the taskbar, click Server Manager. - In Server Manager, click the Manage menu, and then click Add Roles and Features.
However, you can disable usage of pre-compiled code by starting the process with the environment variable 'COMPlus_ReadyToRun' set to '0'. This will tell the .NET Core runtime to disable the use of pre-compiled images, forcing the runtime to JIT compile framework code. In the Solution Explorer, right-click the project file and select Properties.
When code is optimized, the compiler and runtime make changes to the emitted CPU code so that it runs faster, but has a less direct mapping to original source code. If the mapping is less direct, debuggers are frequently unable to tell you the value of local variables, and code stepping and breakpoints might not work as you expect.
In the Connections pane, expand the server name, expand Sites, and then navigate to the Web site or Web application that you want to configure. In the site or application Home pane, double-click ASP. In the ASP pane, expand the Com Plus Properties section and configure your desired settings.
Setting the environment variable COMPlus_ZapDisable=1 disables the use of all NGEN images (*.ni.dll). It can also be set in the registry, but that is not recommended as it would affect all .NET applications. You would normally only use this when debugging the application to get better call stacks. For better performance you can disable the use of NGEN images for only some assemblies with the environment variable COMPlus_DisableNativeImageLoadList (64bit only and needs .NET 4.6+).
For an extensive description see: https://github.com/Microsoft/dotnet/blob/master/Documentation/testing-with-ryujit.md
(In the current CoreCLR it seems DisableNativeImageLoadList has been removed.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With