Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 730
Khalil Khalaf Avatar asked May 02 '16 18:05

Khalil Khalaf


People also ask

How do you disable the Debug option Enable just my code?

To enable or disable Just My Code in Visual Studio, under Tools > Options (or Debug > Options) > Debugging > General, select or deselect Enable Just My Code.

How do I run code in Debug mode?

Press F5 and hover over the type variable again. Repeat this step until you see a value of I in the type variable. Now, press F11 (Debug > Step Into or the Step Into button in the Debug Toolbar). F11 advances the debugger (and executes code) one statement at a time.

How do I get Debug option in Visual Studio?

To set Visual Studio debugger options, select Tools > Options, and under Debugging select or deselect the boxes next to the General options. You can restore all default settings with Tools > Import and Export Settings > Reset all settings.


2 Answers

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.

like image 155
SLaks Avatar answered Oct 19 '22 09:10

SLaks


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)

like image 42
Josh Avatar answered Oct 19 '22 11:10

Josh