How to debug MSVC in release mode

Using DebugView

Step 1: Download DebugView: DebugView

Step 2: Open DebugView and set the filter, for example:

Step 3: Select the “Capture” Menu and try to enable all items except the last one for “Log Boot”

Change in the code

Using the OutputDebugString(). For example:


int testing_value = 5;

std::wostringstream ss;
ss << L"Joe: Testing Value" << testing_value << "." << std::endl;
OutputDebugString(ss.str().c_str());



Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • How to change the line endings in Linux
  • How to find the vc runtime version from an exe
  • How to debug local variable and lambda on c++ release build
  • Why auto is bad in c++
  • Deep Copy/Shadow Copy an Object in Java