9

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!

Zahid Sattar
  • 1,467
  • 2
  • 13
  • 21

3 Answers3

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:

  1. right-click on your startup project
  2. select :Properties"
  3. Go to the "Debugging" property page
  4. 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
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