Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are changes not allowed in Visual Studio 2010?

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.

like image 924
AndyD273 Avatar asked Mar 28 '11 15:03

AndyD273


People also ask

How do you enable editing in VS code?

In Tools > Options > (or Debug > Options) > Debugging > General, select Edit and Continue in the right pane.

How do I disable Debugging in Visual Studio 2010?

Select Stop debugging from Debug menu to end a debugging session. You also can stop debugging from the processes window. In that window, right-click the executing process and select the Detach Process or Terminate Process command.

How do I allow exceptions in Visual Studio?

With a solution open in Visual Studio, use Debug > Windows > Exception Settings to open the Exception Settings window. Provide handlers that respond to the most important exceptions.

How do I disable Debug mode in Visual Studio code?

To enable or disable Just My Code in Visual Studio, under Tools > Options (or Debug > Options) > Debugging > General, select or deselect Enable Just My Code.


2 Answers

You're probably running a Release build.

Switch to the Debug configuration.

like image 88
SLaks Avatar answered Oct 20 '22 17:10

SLaks


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

like image 42
Cameron Castillo Avatar answered Oct 20 '22 18:10

Cameron Castillo