Why are changes not allowed in Visual Studio 2010?

2019-06-19 06:55发布

I'm in the process of upgrading from VS 2008 to VS 2010, and for the most part it is going pretty smooth. One problem I'm running into is that if I put a break in the code, and try to make changes, I get an error saying that it's not allowed. This is something that I can't live without, so I'm hoping it can be fixed. Otherwise I'll be sticking with VS 2008 for a while longer.

Error Message: Changes are not allowed in the following cases: when the debugger has been attached to an already running process. The code being debugged was optimized at build or run time. The assembly being debugged is loaded as domain neutral. The assembly being debugged was loaded through reflection.

I have no add-ins, and the only extension I have is the GIT Source Control Manager.
I tried uninstalling the GIT Source Control Manager, but that didn't help the problem.

4条回答
混吃等死
2楼-- · 2019-06-19 07:34

This problem is due to Intellitrace setting

If Intellitrace is enabled make sure Intellitrace event only is checked

Otherwise this will not allow edit and continue..

If you will click on Intellitrace options you will see the warnings.

查看更多
爷、活的狠高调
3楼-- · 2019-06-19 07:37

For ASP.NET applications, go to Project > App properties > Web > Debugging, and make sure that "enable and continue" is checked.

查看更多
Explosion°爆炸
4楼-- · 2019-06-19 07:41

You're probably running a Release build.

Switch to the Debug configuration.

查看更多
我想做一个坏孩纸
5楼-- · 2019-06-19 07:56

Do you have Edit and Continue in the Options > Debugging > Edit and Continue menu enabled?

查看更多
登录 后发表回答