473,662 Members | 2,666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Edit and continue

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

private void button1_Click(o bject 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 3008

"Niklas" <Ni****@discuss ions.microsoft. comwrote in message
news:9A******** *************** ***********@mic rosoft.com...
Hi
I have created a new Windows project and the only code I have written is:

private void button1_Click(o bject 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****@discuss ions.microsoft. comwrote in message
news:9A******** *************** ***********@mic rosoft.com...
Hi
I have created a new Windows project and the only code I have written is:

private void button1_Click(o bject 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****@discuss ions.microsoft. comwrote in message
news:9A******** *************** ***********@mic rosoft.com...
Hi
I have created a new Windows project and the only code I have written is:
>
private void button1_Click(o bject 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****@discuss ions.microsoft. comwrote in message
news:A7******** *************** ***********@mic rosoft.com...
Sorry...Visual Studio 2005
Regards
/Niklas

"pvdg42" wrote:
>>
"Niklas" <Ni****@discuss ions.microsoft. comwrote in message
news:9A******* *************** ************@mi crosoft.com...
Hi
I have created a new Windows project and the only code I have written
is:

private void button1_Click(o bject 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
2560
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 Edit & Continue seems to not work still :( Can someone confirm if Edit & Continue doesn't work... and if it doesn't why doesn't it, and when will it start working? Thanks
46
4197
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 believe MSFT should do to improve C#, however. I know that in the "Whidbey" release of VS.NET currently
7
1767
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 feature was only for VB, because the development team thinks that c# developers aren't interested in such a feature. DUH! Offcourse we are, right?
4
3848
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
4898
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 running and use edit-and-continue to modify the sourcecode and then immediately execute the modifications. When running within the web site, the source-code is all read-only when I break into it. The little padlock icon appears in the tab for each...
5
3468
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 start debugging and try changing the code, it just ignores any changes I've made. If I add a new line while debugging and try to step through the code, the debugger just skips the new line. Can anyone give me some suggestions? Thanks! Diane...
59
2883
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
1220
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 in the process. Files in this project can be edited while you are debugging if Edit and Continue is turned off. I also notice the Edit and Continue option is grayed out in options.
6
2414
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 in the last 2/3 weeks edit and continue has stopped working. I have used (to test it) a project as described in http://msdn.microsoft.com/vstudio/tour/vs2005_guided_tour/VS2005pro/Smart_Client/EditContinue.htm
5
2153
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 give a hand? Has MS fixed this in VS 2005? Is is fixed in VS 2008? Thanks, ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
0
8435
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8857
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8633
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7368
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6186
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5655
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4181
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4348
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.