Web Images Videos Maps News Groups Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
VS2005 - "Edit and Continue" changes are not allowed while debuggi
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Streamline  
View profile  
 More options Nov 22 2005, 11:35 am
Newsgroups: microsoft.public.vsnet.debugging
From: "Streamline" <streaml...@nospam.nospam>
Date: Mon, 21 Nov 2005 16:35:03 -0800
Local: Tues, Nov 22 2005 11:35 am
Subject: VS2005 - "Edit and Continue" changes are not allowed while debuggi
Initial setup:
Microsoft Windows XP Professional Version 2002 SP2
Microsoft Development Environment 2003 Version 7.1 (Visual Studio)
Microsoft .NET Framework 1.1 SP1
Microsoft Visual C# .NET

I created a solution containing a Web project and a Class Library project.
The Web project that has a project reference to the Class Library project.

I then installed:
Microsoft Visual Studio 2005 Standard Edition Version 8.0
Microsoft .NET Framework 2.0
Microsoft Visual C# 2005

I used VS2005 to upgrade my solution.

When I debug, I can step into the Web project source code, edit and
continue. I can also step into the Class Library source code. However, when I
try to edit the Class Library source code, I get the following error:

Edit and Continue
Changes are not allowed when the debugger has been attached to an already
running process or the code being debugged is optimized.

The Class Library project Build properties shows Configuration: Debug, and
Optimize code is unchecked


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"Jeffrey Tan[MSFT]"  
View profile  
 More options Nov 22 2005, 10:03 pm
Newsgroups: microsoft.public.vsnet.debugging
From: v-je...@online.microsoft.com ("Jeffrey Tan[MSFT]")
Date: Tue, 22 Nov 2005 11:03:38 GMT
Local: Tues, Nov 22 2005 10:03 pm
Subject: RE: VS2005 - "Edit and Continue" changes are not allowed while debuggi
Hi streamline,

Thanks for your post.

Have you tried to create a new project in VS2005 without upgrading? Does
this problem still arise? If so, I suggest you provide some detailed steps
to help me reproduce out this issue. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "VS2005 - "Edit and Continue" changes are not allowed while deb" by Streamline
Streamline  
View profile  
 More options Nov 23 2005, 12:09 pm
Newsgroups: microsoft.public.vsnet.debugging
From: "Streamline" <streaml...@nospam.nospam>
Date: Tue, 22 Nov 2005 17:09:04 -0800
Local: Wed, Nov 23 2005 12:09 pm
Subject: RE: VS2005 - "Edit and Continue" changes are not allowed while deb
Here are the steps.
Initial setup:

Microsoft Windows XP Professional Version 2002 SP2
Microsoft Visual Studio 2005 Standard Edition Version 8.0
Microsoft .NET Framework 2.0
Microsoft Visual C# 2005

File->New->Web Site
ASP.NET Web Site
OK
File->Add->New Project
Class Library
OK

Add the following code to Class1.cs:

public Class1()
{
            string foo = "bar";

}

Add the following code to Default.aspx.cs Page_Load:

ClassLibrary1.Class1 obj = new ClassLibrary1.Class1();

Set a breakpoint on that line.
Start debugging.
The following message appears:

Debugging Not Enabled
The page cannot be run in debug mode because debugging is not enabled in the
Web.config file.
What would you like to do?
  [checked] Add a new Web.config file with debugging enabled.
            ! Debugging should be disabled in the Web.config file before
deploying the Web site to a production environment.
[unchecked] Run without debugging. (Equivalent to Ctrl+F5)

I clicked OK (add Web.config).
Web site started running under the ASP.NET Development Server - Port 1129.
(Note that in my real situation I am running under IIS.)
Break point hit.
Step into obj's constructor.
Step to foo assignment.
Attempt to change string.
I get the following error:

Edit and Continue
Changes are not allowed when the debugger has been attached to an already
running process or the code being debugged is optimized.

Note that the default Build properties of ClassLibary1 do not specify
optimized code.

Microsoft Windows XP Professional Version 2002 SP2

Microsoft Visual Studio 2005 Standard Edition Version 8.0

Microsoft .NET Framework 2.0

Microsoft Visual C# 2005

File->New->Web Site

ASP.NET Web Site

OK

File->Add->New Project

Class Library

OK

Add the following code to Class1.cs:

public Class1()

{

            string foo = "bar";

}

Add the following code to Default.aspx.cs Page_Load:

ClassLibrary1.Class1 obj = new ClassLibrary1.Class1();

Set a breakpoint on that line.

Start debugging.

The following message appears:

Debugging Not Enabled

The page cannot be run in debug mode because debugging is not enabled in the
Web.config file.

What would you like to do?

  [checked] Add a new Web.config file with debugging enabled.

            ! Debugging should be disabled in the Web.config file before
deploying the Web site to a production environment.

[unchecked] Run without debugging. (Equivalent to Ctrl+F5)

I clicked OK (add Web.config).

Web site started running under the ASP.NET Development Server - Port 1129.
(Note that in my real situation I am running under IIS.)

Break point hit.

Step into obj's constructor.

Step to foo assignment.

Attempt to change string.

I get the following error:

Edit and Continue

Changes are not allowed when the debugger has been attached to an already
running process or the code being debugged is optimized.

Note that the default Build properties of ClassLibary1 do not specify
optimized code.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"Jeffrey Tan[MSFT]"  
View profile  
 More options Nov 23 2005, 9:14 pm
Newsgroups: microsoft.public.vsnet.debugging
From: v-je...@online.microsoft.com ("Jeffrey Tan[MSFT]")
Date: Wed, 23 Nov 2005 10:14:56 GMT
Local: Wed, Nov 23 2005 9:14 pm
Subject: RE: VS2005 - "Edit and Continue" changes are not allowed while deb
Hi streamline,

Yes, with your detailed steps, I can reproduce out this issue, I will do
some research in this issue, and reply to you ASAP. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"Jeffrey Tan[MSFT]"  
View profile  
 More options Nov 24 2005, 2:36 pm
Newsgroups: microsoft.public.vsnet.debugging
From: v-je...@online.microsoft.com ("Jeffrey Tan[MSFT]")
Date: Thu, 24 Nov 2005 03:36:54 GMT
Local: Thurs, Nov 24 2005 2:36 pm
Subject: RE: VS2005 - "Edit and Continue" changes are not allowed while deb
Hi streamline,

Sorry for letting you wait.

You are correct, Edit and Continue does not work in Web projects(it works
well with console or winform application).  
Actually, this behavior is by design, although I agree that the error
message is not very clear. It turns out that while your code isn¡¯t
¡°Optmized¡±, you did attach to an already running process, because the
debugger automatically attached to the webserver to debug your aspx page.
So the issue regards to the first part of the dialog: "Changes are not
allowed when the debugger has been attached to an already running
process..."

Hope this information helps

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Streamline  
View profile  
 More options Nov 25 2005, 1:05 pm
Newsgroups: microsoft.public.vsnet.debugging
From: "Streamline" <streaml...@nospam.nospam>
Date: Thu, 24 Nov 2005 18:05:01 -0800
Local: Fri, Nov 25 2005 1:05 pm
Subject: RE: VS2005 - "Edit and Continue" changes are not allowed while deb
Hi Jeffrey,
This doesn't sound right.
1) The debugger starts the web server.
2) Edit and Continue *does* work in Web projects.
Could you please clarify?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"Jeffrey Tan[MSFT]"  
View profile  
 More options Nov 25 2005, 4:28 pm
Newsgroups: microsoft.public.vsnet.debugging
From: v-je...@online.microsoft.com ("Jeffrey Tan[MSFT]")
Date: Fri, 25 Nov 2005 05:28:08 GMT
Local: Fri, Nov 25 2005 4:28 pm
Subject: RE: VS2005 - "Edit and Continue" changes are not allowed while deb
Hi streamline,

Thanks for your feedback.

This is because in VS2005, the web project code is doing dynamically
compiling with Asp.net engine, not the VS2005 IDE(even the code behind is
dynamically compiled). So it is not confined in above VS2005 "Edit and
Continue" limitation.

Hope it will be clarify.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Streamline  
View profile  
 More options Nov 28 2005, 11:22 am
Newsgroups: microsoft.public.vsnet.debugging
From: "Streamline" <streaml...@nospam.nospam>
Date: Sun, 27 Nov 2005 16:22:01 -0800
Local: Mon, Nov 28 2005 11:22 am
Subject: RE: VS2005 - "Edit and Continue" changes are not allowed while deb
Hi Jeffrey,
Given that 1) we want Edit and Continue and 2) the bulk of our code is
currently in Class Library projects, what is Microsoft's recommended practice
when upgrading a solution such as ours to Visual Studio 2005?

Thanks


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"Jeffrey Tan[MSFT]"  
View profile  
 More options Nov 28 2005, 4:17 pm
Newsgroups: microsoft.public.vsnet.debugging
From: v-je...@online.microsoft.com ("Jeffrey Tan[MSFT]")
Date: Mon, 28 Nov 2005 05:17:53 GMT
Local: Mon, Nov 28 2005 4:17 pm
Subject: RE: VS2005 - "Edit and Continue" changes are not allowed while deb
Hi streamline,

For this situation, we have to stop the debug and change the source code in
class library, then re-start the debugging again. This is the behavior of
VS.net2003, which we also have to restart the debugging to let the
modification take effect.

Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google