I'm trying to get edit-and-continue working with Visual Studio 2008 with an ASP.Net MVC project. I'm running 64-bit, so that adds to the problem.
我正在尝试使用ASP.Net MVC项目编辑并继续使用Visual Studio 2008。我正在运行64位,因此增加了问题。
In Configuration Manager, my active solution platform is x86 and all the projects are targeting Debug x86 as well.
在Configuration Manager中,我的活动解决方案平台是x86,所有项目也都以Debug x86为目标。
In the project properties I have "Enable Edit and Continue" selected.
在项目属性中,我选择了“启用编辑并继续”。
In Tools->Options...->Debugging->Edit and continue I have "Enable Edit and Continue" selected.
在工具 - >选项...->调试 - >编辑并继续我选择了“启用编辑并继续”。
In Tools->Options...->Debugging->General I have "Break all processes when one project breaks" enabled.
在工具 - >选项...->调试 - >常规中,我启用了“在一个项目中断时中断所有进程”。
As soon as I try to change some source code outside of a view/template'I get the message: Edit and continue: Changes are not allowed while code is running or if the option 'Break all processes when one project breaks' is dissabled. The option can be enabled in Tools, Options, Debugging.
一旦我尝试在视图/模板之外更改一些源代码,我就会收到消息:编辑并继续:代码运行时不允许更改,或者如果选项'在一个项目中断时中断所有进程'不可用。可以在“工具”,“选项”,“调试”中启用该选项。
Any ideas how to get it to work?
任何想法如何让它工作?
5 个解决方案
#1
13
Do you have Enable Optimizations checked? (Advanced Compile Options), I don't think you can have that checked...
您是否选中了“启用优化”? (高级编译选项),我不认为你可以检查...
另外:http://blogs.msdn.com/webdevelopertips/archive/2008/11/26/tip-29-did-you-know-how-to-enable-edit-and-continue-feature-for-web-应用projects.aspx
#2
7
For VS2010 try this
对于VS2010试试这个
#3
3
You can't 'edit and continue' when the program is running. You must break to edit and continue, and if you have many threads you must break all. If when breaking, some threads continue to run, it not a problem with 'edit and continue' but a problem with the break options.
程序运行时,您无法“编辑并继续”。你必须打破编辑并继续,如果你有很多线程,你必须打破所有。如果在破坏时,某些线程继续运行,那么“编辑并继续”不会出现问题,但是中断选项存在问题。
#4
1
Are you using IIS or the built in Visual Studio development server for debugging? I've had trouble before getting edit and continue running under IIS, and ended up just using the built in server.
您使用IIS或内置的Visual Studio开发服务器进行调试吗?在编辑并继续在IIS下运行之前我遇到了麻烦,最后只使用了内置服务器。
#5
1
I open a separate browser window (so it doesn't close when I stop debugging) then I stop debugging, make changes and build them and just carry on using the other browser window to view the changes. (Yes - this works even with changes in your class files, controllers etc).
我打开一个单独的浏览器窗口(因此当我停止调试时它不会关闭)然后我停止调试,进行更改并构建它们,然后继续使用其他浏览器窗口来查看更改。 (是的 - 即使您的类文件,控制器等更改,这也适用)。
If you just want to change the views, CSS or scripts you just need to shift and refresh to make sure your browser gets the updated files rather than using the cache.
如果您只想更改视图,CSS或脚本,您只需要移动和刷新,以确保浏览器获取更新的文件而不是使用缓存。
If this sounds odd to anyone - try it! It works!
如果这对任何人来说都很奇怪 - 试试吧!有用!
#1
13
Do you have Enable Optimizations checked? (Advanced Compile Options), I don't think you can have that checked...
您是否选中了“启用优化”? (高级编译选项),我不认为你可以检查...
另外:http://blogs.msdn.com/webdevelopertips/archive/2008/11/26/tip-29-did-you-know-how-to-enable-edit-and-continue-feature-for-web-应用projects.aspx
#2
7
For VS2010 try this
对于VS2010试试这个
#3
3
You can't 'edit and continue' when the program is running. You must break to edit and continue, and if you have many threads you must break all. If when breaking, some threads continue to run, it not a problem with 'edit and continue' but a problem with the break options.
程序运行时,您无法“编辑并继续”。你必须打破编辑并继续,如果你有很多线程,你必须打破所有。如果在破坏时,某些线程继续运行,那么“编辑并继续”不会出现问题,但是中断选项存在问题。
#4
1
Are you using IIS or the built in Visual Studio development server for debugging? I've had trouble before getting edit and continue running under IIS, and ended up just using the built in server.
您使用IIS或内置的Visual Studio开发服务器进行调试吗?在编辑并继续在IIS下运行之前我遇到了麻烦,最后只使用了内置服务器。
#5
1
I open a separate browser window (so it doesn't close when I stop debugging) then I stop debugging, make changes and build them and just carry on using the other browser window to view the changes. (Yes - this works even with changes in your class files, controllers etc).
我打开一个单独的浏览器窗口(因此当我停止调试时它不会关闭)然后我停止调试,进行更改并构建它们,然后继续使用其他浏览器窗口来查看更改。 (是的 - 即使您的类文件,控制器等更改,这也适用)。
If you just want to change the views, CSS or scripts you just need to shift and refresh to make sure your browser gets the updated files rather than using the cache.
如果您只想更改视图,CSS或脚本,您只需要移动和刷新,以确保浏览器获取更新的文件而不是使用缓存。
If this sounds odd to anyone - try it! It works!
如果这对任何人来说都很奇怪 - 试试吧!有用!