修改code,而在VS 2010中调试 [英] Modifying the code while debugging in VS 2010

查看:240
本文介绍了修改code,而在VS 2010中调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的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.

推荐答案

据<一href="http://connect.microsoft.com/VisualStudio/feedback/details/520179/vs2010-sp2-x86-unable-to-edit-and-continue">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:

  1. 文件>新建项目,选择C#,创建新的Web应用程序
  2. 走进了Default.aspx.cs文件
  3. 把一个断点,在Page_Load函数
  4. 开启项目属性,选择Web选项卡,选中启用编辑并继续,点击保存,关闭属性页
  5. 在按下F5在您的Default.aspx
  6. 在一个断点,尝试通过写作code以下行创建的Page_Load函数中一个新的变量:

  1. File > New Project, select C#, create a new Web Application
  2. Go into the Default.aspx.cs file
  3. Put a breakpoint at the Page_Load function
  4. Open project properties, choose the Web tab, select "Enable Edit and Continue", hit save, close the property pages
  5. Hit F5 on your Default.aspx
  6. 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)

这篇关于修改code,而在VS 2010中调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆