Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while trying to edit code in debugging mode in VS2013

I'm a C# programmer and recently I've installed Visual Studio 2013. The problem is when i set a break point or get an error and trying to edit the codes while debugging I get this error and I couldn't find the same error searching on Google.

Changes are not allowed for this module as it was not built for changes while debugging or the target .NET runtime version does not support it

I also tried to check the options on Tools -> Options -> Debugging -> Edit and Continue, But didn't help.

Any idea what the problem is?

like image 351
Alex Jolig Avatar asked May 08 '14 03:05

Alex Jolig


2 Answers

To edit a C# program while you're running it in Visual Studio 2013:

  1. Go to Project, Properties, Build.
  2. Set Platform target: x86
  3. Disable "Optimize code"
  4. Set Advanced, Debug Info: Full
like image 114
Cees Timmerman Avatar answered Oct 31 '22 18:10

Cees Timmerman


I came across the same issue and found that "solution configuration" on the top bar was changed to Release from Debug,because I build the last version into Release folder.Changing back to Debug mode will solve the issue.

like image 37
S.Roshanth Avatar answered Oct 31 '22 20:10

S.Roshanth