473,408 Members | 1,775 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,408 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 2993

"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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.