.NET/C#: How to set debugging environment variable COMPLUS_HeapVerify?

前端 未结 1 490
甜味超标
甜味超标 2021-01-21 16:10

I need the heap to be verified each time the garbage collector (GC) finishes its work. I read this can be done by setting the environment variable COMPLUS_HeapVerify

1条回答
  •  再見小時候
    2021-01-21 16:40

    The approach you mentioned is absolutely correct.

    1. Go to Control Panel->System Properties->Advanced System Settings->Environment Variables.

    2. If you have administrator privileges, add a system variable called “COMPLUS_HeapVerify” with a value of “1”; otherwise — add the user one. Note, in the second case you might need to log out and log on.

    Hope that helps.

    0 讨论(0)
提交回复
热议问题