是否有可能同时在Visual Studio调试,就像日食(JAVA)编辑代码 [英] is it possible to edit code while debugging in visual studio, like in eclipse (java)

查看:138
本文介绍了是否有可能同时在Visual Studio调试,就像日食(JAVA)编辑代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有在Visual Studio断点调试时编辑代码的选项。当我停下来,所有的文件似乎的锁定的编辑。

Is there an option to edit the code when debugging in a breakpoint in Visual Studio. When I stop, all files seems locked for editing.

有没有办法来改变这种行为?它可以在Eclipse

Is there a way to change this behaviour? It is possible in Eclipse

编辑:后,尝试所有建议以下(包括移动自发布调试),现在它告诉我,我不要'T有正确的微软Office 的版本和调试不能在调试模式下启动。然而,在释放模式是工作。我试图调试前景加载项。

after trying all suggested below (including move it to debug from release) now it is telling me I don't have the correct ms-office version and debug cannot start in debug mode. However, in release mode it was working. I am trying to debug an outlook add-in.

推荐答案

是的,这就是所谓的编辑并继续,在工具|选项​​调试。请注意,这是不兼容的IntelliTrace ,所以你必须禁用,如果你使用它。的(谢谢安东谢苗诺夫获得该信息。)

Yes, it's called "Edit and Continue", in Tools | Options under Debugging. Note that it's not compatible with IntelliTrace, so you have to disable that if you're using it. (Thank you Anton Semenov for that info.)

修改:如果您使用的是真正的旧版本(原VS.Net,而不是到2005年VS.Net或更高版本),这是非常繁琐的这个(或没有它,我不是很记得,我只记得是沮丧)。但是,如果你正在使用VS.Net 2005或更高版本,以我的经验,它是默认启用的,而且运作非常良好。当执行暂停(和你说你会打一个断点,所以...),可以使很多种变化和环境将愉快地编译它们并继续。确保你要调试的项目都是在溶液中。

Edit: If you're using a really old version (the original VS.Net, as opposed to VS.Net 2005 or later), it was pretty fiddly about this (or didn't have it, I can't quite recall; I just remember being frustrated). But if you're using VS.Net 2005 or later, in my experience, it's enabled by default and works very well. When execution is paused (and you said you'd hit a breakpoint, so...), you can make quite a variety of changes and the environment will happily compile them and continue. Make sure all of the projects you want to debug are in the solution.

这篇关于是否有可能同时在Visual Studio调试,就像日食(JAVA)编辑代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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