更新:2007 年 11 月
错误消息
当启用“编辑并继续”后,更新构造函数的“this”或“base”调用将会阻止调试会话继续进行
当在构造函数声明后进行 base 或 this 调用时,就会发生此错误。请看下面的示例:
class Program
{
public Program()
: this(10)
{
}
public Program(int a) { }
static void Main()
{
}
}
如果单步执行应用程序,然后试图将 this(10) 更改为 this(20),则发生错误 4066。
更正此错误
在“编辑”菜单上单击“撤消”以撤消更改
- 或 -
在“调试”菜单上单击“停止调试”,进行更改,然后启动新的调试会话。