I am trying to set the _NO_DEBUG_HEAP variable in VS 2010. How do I set _NO_DEBUG_HEAP environment variable in VS 2010 ? Need some quick help!
            Asked
            
        
        
            Active
            
        
            Viewed 1.2k times
        
    3 Answers
22
            
            
        The previous answers were setting the var globally for all applications.
To make this setting exist only during a debug session...
in VS, you can set debugging env vars by:
- right-click on your startup project
 - select :Properties"
 - Go to the "Debugging" property page
 - Add your var to the "Environment" property in the form varName=val. Multiple vars can be defined with one var=val pair per line.
 
        D. Garlisch
        
- 229
 - 2
 - 2
 
- 
                    4I do not see this option for a .NET application – Stephen Nutt Jan 29 '14 at 16:00
 - 
                    Use a separate C++ project that actually starts the .net binary. – Bruno Martinez May 12 '14 at 19:49
 
12
            Control Panel->System Properties->Advanced System Settings->Environment Variables->System Variables.
Add a new Variable called “_NO_DEBUG_HEAP” with a value of “1”
        Mark PM
        
- 2,909
 - 14
 - 19
 
1
            
            
        Set the environment variable within your OS
_NO_DEBUG_HEAP=1
Restart Visual Studio.
        ChrisBint
        
- 12,773
 - 6
 - 40
 - 62