Web Images Videos Maps News Groups Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion VS2005 - "Edit and Continue" changes are not allowed while deb
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 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.

""Jeffrey Tan[MSFT]"" wrote:
> 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.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google