Edit and continue

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
 
P

pvdg42

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.
 
G

Guest

Hi
Found the problem. I had a component named TypeMock which disabled the Edit
and Continue.
Regards
/Niklas
 
C

Chan Ming Man

You can check it in

Tools -> Options -> Debugging -> Edit and Continue

chanmm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top