473,394 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Edit and continue

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
Dec 7 '06 #1
4 2992

"Niklas" <Ni****@discussions.microsoft.comwrote in message
news:9A**********************************@microsof t.com...
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.
Dec 7 '06 #2
Sorry...Visual Studio 2005
Regards
/Niklas

"pvdg42" wrote:
>
"Niklas" <Ni****@discussions.microsoft.comwrote in message
news:9A**********************************@microsof t.com...
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.
Dec 8 '06 #3
Hi
Found the problem. I had a component named TypeMock which disabled the Edit
and Continue.
Regards
/Niklas

"Niklas" wrote:
Sorry...Visual Studio 2005
Regards
/Niklas

"pvdg42" wrote:

"Niklas" <Ni****@discussions.microsoft.comwrote in message
news:9A**********************************@microsof t.com...
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.

Dec 8 '06 #4
You can check it in

Tools -Options -Debugging -Edit and Continue

chanmm

"Niklas" <Ni****@discussions.microsoft.comwrote in message
news:A7**********************************@microsof t.com...
Sorry...Visual Studio 2005
Regards
/Niklas

"pvdg42" wrote:
>>
"Niklas" <Ni****@discussions.microsoft.comwrote in message
news:9A**********************************@microso ft.com...
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.
Dec 8 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Andrew Brampton | last post by:
Hi, I read a few months back that Edit & Continue was going to be added to VS2003 for C# and the other .Net languages... However I'm sitting in front of my newly installed Visual Studio 2003 and...
46
by: Keith K | last post by:
Having developed with VB since 1992, I am now VERY interested in C#. I've written several applications with C# and I do enjoy the language. What C# Needs: There are a few things that I do...
7
by: Wim Bonjean | last post by:
Hi, I recently was at the MS dev days and some speaker mentioned that there is a cool feature that allows edit/continue, so you can debug, edit and continue without recompiling. But, this...
4
by: WayneM | last post by:
Is there a Edit and Continue capability in VB.NET yet? I realize it may not be the same as VB6, but I thought there was going to be some form of this? Thanks for any info, WayneM
2
by: Oenone | last post by:
I am developing an assembly that can be used either by a Windows Forms application or from within an ASP.NET web site. When running within the Forms app, I can break into the code while it is...
5
by: Diane Yocom | last post by:
I'm using VS2005 and am trying to get Edit and Continue to work while debugging. I've gone to the Tools-Options-Debugging dialog box and made sure "Enable Edit and Continue" is checked, but when I...
59
by: Jeremy | last post by:
Is a worthwhile feature? I've lived just fine without it for years... don't see much value in using it. Am I missing something? Thanks!
0
by: Brett Romero | last post by:
For what ever reason, edit and continue isn't working any more. Now I get this message: Edit and Continue Changes are not allowed if the source code on disk does not match the code running...
6
by: Gianluca Pezzoli | last post by:
I have used edit And Continue for months in Winforms applications with VS 2005 TeamEdition x Software Developers. I have windows vista with all updates. Also VS has all available updates. But...
5
by: Ryan Liu | last post by:
I have this problem: "cannot continue edit while debug in VS2005". I see the same tread after I search this topic in google, but none solutions works for me. So again, I ask here. Can someone...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.