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

别来无恙 提交于 2020-06-14 04:35:13

问题


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:


回答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.




回答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)



来源:https://stackoverflow.com/questions/36989182/where-to-find-enable-debugging-of-unmanaged-code-to-be-able-to-edit-the-code-w

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!