本文介绍了查看变量时,Visual Studio调试器崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
下面是我得到VS调试器崩溃前不久。当我没有调试器视图,它抛出的设置功能段错误。调试器已经工作了一整天,在同样的东西太多。任何想法?
对象我查看:
[DataContract]
公类SvnUrl
{
公共字符串_type;
公共字符串_acronym;
公共字符串_location;
公共字符串_url;
公众诠释_foundstatus;
[数据成员]
公共字符串类型
{
得到{_type; }
集合{_type =价值; }
}
[数据成员]
公共字符串的缩写
{
{返回_acronym; }
集合{_acronym =价值; }
}
[数据成员]
公共字符串位置
{
{返回_location; }
集合{_location =价值; }
}
[数据成员]
公共字符串URL
{
{返回_url; }
集合{_url =价值; }
}
[数据成员]
公众诠释foundstatus
{
{返回_foundstatus; }
集合{_foundstatus =价值; }
}
}
解决方案
你确定你输入相同的例子,你的代码,你真的没有 {返回位置; }
在该位置属性(注意失踪 _
从而无限递归)?
Below is what I get shortly before VS Debugger crashes. When i don't have the debugger view it, it throws a segfault in the set function. The debugger has been working all day, on this same stuff too. Any ideas?
Object i am viewing:
[DataContract]
public class SvnUrl
{
public string _type;
public string _acronym;
public string _location;
public string _url;
public int _foundstatus;
[DataMember]
public string type
{
get { return _type; }
set { _type = value; }
}
[DataMember]
public string acronym
{
get { return _acronym; }
set { _acronym = value; }
}
[DataMember]
public string location
{
get { return _location; }
set { _location = value; }
}
[DataMember]
public string url
{
get { return _url; }
set { _url = value; }
}
[DataMember]
public int foundstatus
{
get { return _foundstatus; }
set { _foundstatus = value; }
}
}
解决方案
Are you sure you typed the example identical to your code and you don't really have get { return location; }
in that location property (note the missing _
thus recursing infinitely)?
这篇关于查看变量时,Visual Studio调试器崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!