在哪里可以找到“启用非托管代码的调试"能够在系统运行时编辑代码? [英] Where to find "Enable Debugging of Unmanaged Code" to be able to edit the code while the system is running?

查看:36
本文介绍了在哪里可以找到“启用非托管代码的调试"能够在系统运行时编辑代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在旧版本的 Visual Studio 中(就像家里的那个,猜测是 2013 年),我可以在系统运行时编辑我的代码,但我无法继续(而且我不想继续).在单步调试我的代码时,我只想开始输入,完成编辑后重新编译.

优点是在打字时我可以悬停鼠标并观察变量的值/结构并根据需要进行编辑.有时这是一个很好的指南,比如提醒或笔记.

为什么我的 Visual Studio 2015 阻止我编辑代码?说:

<块引用>

启用非托管调试时不允许更改

PS 我的

解决方案

你来错地方了;这是系统范围的调试选项.

如您链接的帖子所述,您需要转到项目属性"中的调试"选项卡.

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:

解决方案

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.

这篇关于在哪里可以找到“启用非托管代码的调试"能够在系统运行时编辑代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆