修改code,而在VS 2010中调试而在、code、VS

由网友(曾天真现成熟)分享简介:我是新来的VS 2010和现在面临的问题,以修改code,而debugging..Please帮助我,如果有任何设置,以便实现这个目标。I am new to VS 2010 and am facing problem to Modify the code while debugging..Please help m...

我是新来的VS 2010和现在面临的问题,以修改code,而debugging..Please帮助我,如果有任何设置,以便实现这个目标。

I am new to VS 2010 and am facing problem to Modify the code while debugging..Please help me If there is any setting so achieve this.

推荐答案

据http://connect.microsoft.com/VisualStudio/feedback/details/520179/vs2010-sp2-x86-unable-to-edit-and-continue编辑并继续被认为是可能的与Visual Studio 2010 ASP.NET项目,但只有当你在断点处停止。

According to http://connect.microsoft.com/VisualStudio/feedback/details/520179/vs2010-sp2-x86-unable-to-edit-and-continue Edit and Continue is supposed to be possible in ASP.NET projects with Visual Studio 2010, but only while you are stopped at a breakpoint.

下面是从Microsoft答案,以确保编辑并继续被打开了,看它是否为你工作的步骤:

Here are the steps from the Microsoft answer there to make sure Edit and Continue is turned on, and to see if it's working for you:

文件>新建项目,选择C#,创建新的Web应用程序 走进了Default.aspx.cs文件 把一个断点,在Page_Load函数 开启项目属性,选择Web选项卡,选中启用编辑并继续,点击保存,关闭属性页 在按下F5在您的Default.aspx

在一个断点,尝试通过写作code以下行创建的Page_Load函数中一个新的变量: File > New Project, select C#, create a new Web Application Go into the Default.aspx.cs file Put a breakpoint at the Page_Load function Open project properties, choose the Web tab, select "Enable Edit and Continue", hit save, close the property pages Hit F5 on your Default.aspx

When the breakpoint is hit, try to create a new variable inside the Page_Load function by writing the following lines of code:

INT I = 1; I + = 5;

int i = 1; i += 5;

命中F10(或打一步进入)

Hit F10 (or hit step into)

阅读全文

相关推荐

最新文章