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 File->New->Web Site Add the following code to Class1.cs: public Class1() } Add the following code to Default.aspx.cs Page_Load: ClassLibrary1.Class1 obj = new ClassLibrary1.Class1(); Set a breakpoint on that line. Debugging Not Enabled I clicked OK (add Web.config). Edit and Continue Note that the default Build properties of ClassLibary1 do not specify 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 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 [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. 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 Note that the default Build properties of ClassLibary1 do not specify ""Jeffrey Tan[MSFT]"" wrote:
> Hi streamline, > Thanks for your post. > Have you tried to create a new project in VS2005 without upgrading? Does > Best regards, 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.
| ||||||||||||||