繁体   English   中英

查看变量时Visual Studio调试程序崩溃

[英]Visual Studio debugger crashes when viewing a variable

下面是我在VS Debugger崩溃之前不久得到的内容。 当我没有调试器查看它时,它会在set函数中抛出一个段错误。 调试器一整天都在工作,同样的东西。 有任何想法吗?

Visual Studio调试会话

我正在查看的对象:

[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; }
    }
}

你确定你输入的代码与你的代码相同吗?你真的没有get { return location; } get { return location; }在该位置属性(注意失踪_从而递归无限)?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM