Where to find "Enable Debugging of Unmanaged Code" to be able to edit the code while the system is running?

17,369

Solution 1

You're in the completely wrong place; that's the system-wide debug options.

As explained in the post you linked to, you need to go to the Debug tab in Project Properties.

Solution 2

use native compatibility mode when you want to break ok C++ code. Also right click on the project and check "enable native debugging" in the project properties. Those two things should allow you to debug c++ (not edit and continue, just normal debugging)

Share:
17,369
Khalil Khalaf
Author by

Khalil Khalaf

I coded, I compiled, I conquered. A good programmer writes code for machines to understand. A great programmer writes code for other programmers to understand. #SOreadyToHelp

Updated on July 23, 2022

Comments

  • Khalil Khalaf
    Khalil Khalaf almost 2 years

    In an older version of Visual Studio (Like the one at home, guess 2013), I am able to edit my code while the system is running but I can't continue (and I don't want to continue). While step-ping through my code, I just want to start typing and once I finish editing then to recompile.

    The advantage is that while typing I can hoover my mouse and watch values/structures of the variables and edit according. It's a nice guide sometimes, like a reminder or notes.

    Why my Visual Studio 2015 prevents me from editing my code? saying:

    Changes are not allowed when unmanaged debugging is enabled

    P.S my Edit and Continue option is enabled as suggested everywhere on the internet. And there is no Enable Unmanaged debugging option for 2015 like suggested here for 2010 How to: Enable Debugging of Unmanaged Code

    Edit: It's a C#/C++ application. I didn't start the project from scratch and it's a huge one. I start it as Debugger and sometimes Release. Doesn't work on both (I don't care about the Release)

    How my settings under Tools -> Options -> Debugging -> General look like:

    enter image description here enter image description here

  • Khalil Khalaf
    Khalil Khalaf almost 8 years
    But I went there already and it is not there.. There is only three: Enable native code debugging , Enable SQL Server Debugging, Enable the Visual Studio hosting process under properties -> Debug
  • SLaks
    SLaks almost 8 years
    Enable native code debugging is what you're looking for.
  • Khalil Khalaf
    Khalil Khalaf almost 8 years
    The error says "Changes ... is enabled" So I disabled it (it was enabled) but didn't work. However, worked after restarting the whole thing :))))))))))))))) thanks :))))
  • Bondolin
    Bondolin over 2 years
    Just to clarify, this needs done in the C# project, not just the C++/CLI project.