如何在调试时启用表单编辑?
我确信以前有人问过这个问题,但我搜索过但找不到答案。
有什么方法可以在 Visual Studio 2008 中调试时启用表单编辑吗?
目前,当我调试时,所有控件和属性都被锁定以防止编辑。当我调试并尝试调整表单时,这非常烦人。
我可以在某处更改设置以允许此操作吗?
I'm sure this has been asked before, but I searched and couldn't find an answer.
Is there any way I can enable editing of Forms while debugging in Visual Studio 2008?
Currently, when I'm debugging, all of the controls and properties are locked to prevent editing. This is very annoying when I'm debugging and trying to adjust the forms.
Is there a setting I can change somewhere to allow this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
不会。当您按 F5 时,所有设计器状态都会编译为代码。所以不可能在调试中提供改变。
No. All the designer state is compiled into code when you hit F5. So it is not possible to provide change in debugging.
这是可能的。工具+选项、调试、编辑并继续。取消选中启用选项。这还允许您在不激活断点的情况下编辑源代码。当然,在您停止并重建之前,您的更改不会产生任何效果。
It is possible. Tools + Options, Debugging, Edit and Continue. Uncheck the Enable option. That also allows you to edit the source code without having a breakpoint active. But of course, your changes won't have any effect until you stop and rebuild.
不,这是不可能的。
No, this is not possible.
您可以使用 Visual-studio 的两个实例,并在第二个实例中进行编辑 - 但请尽量避免在多个 Visual-studio 实例中打开一个表单进行编辑。
You may be able to use two instances of visual-studio, and do the edit in the 2nd instance – however try to avoid having a form open for editing in more than one instance of visual-studio.