Edit and continue

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I have created a new Windows project and the only code I have written is:

private void button1_Click(object sender, EventArgs e)
{
string test = "test";
MessageBox.Show(test);
}

When I try to do any change I got the message:
"Changes are not allowed when the debugger has been attached to an already
running process or the code being debugged is optimized".

Debugging/General/"Suppress JIT optimization..." is checked.

What do I need to do to get "Edit and continue" to work?

Reagrds
/Niklas
 
Niklas said:
Hi
I have created a new Windows project and the only code I have written is:

private void button1_Click(object sender, EventArgs e)
{
string test = "test";
MessageBox.Show(test);
}

When I try to do any change I got the message:
"Changes are not allowed when the debugger has been attached to an already
running process or the code being debugged is optimized".

Debugging/General/"Suppress JIT optimization..." is checked.

What do I need to do to get "Edit and continue" to work?

Reagrds
/Niklas

Which version of Visual Studio?
VS 2003 .NET doesn't support edit and continue.
 
Hi
Found the problem. I had a component named TypeMock which disabled the Edit
and Continue.
Regards
/Niklas
 
Back
Top