调试时编辑C# [英] Editing C# while debugging
问题描述
我知道以前我已经处理了这个问题,但是覆盖这些设置总是似乎在改变。
I know I've dealt with this issue before, but the settings to override this always seem to be changing.
我在Visual Studio 2008中有一个C#项目在调试过程中,VS不会让我编辑我的代码。我不想编辑并继续 - 我只想对我的下一个构建进行更改。编辑和继续已禁用。当我在调试我的项目时尝试编辑一个文件时,我得到一个消息,文件现在是只读的。
I have a C# project in Visual Studio 2008. While I'm debugging, VS won't let me edit my code. I don't want to Edit and Continue - I just want to make changes for my next build. Edit and Continue is disabled. When I try to edit a file while debugging my project, I get a little message that the files are now Read-Only.
最近在VS2K8中处理过这个文件? / p>
Anyone dealt with this recently in VS2K8?
推荐答案
工具+选项,调试+编辑并继续。关闭启用复选框。您现在可以编辑源代码。在您进行更改后继续调试时,您将收到警告。
Tools + Options, Debugging + Edit and Continue. Turn off the Enable checkbox. You can now edit the source code. You will get a warning when you continue to debug after you've made a change.
这篇关于调试时编辑C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!