c# - 查看变量时 Visual Studio 调试器崩溃

标签 c# visual-studio

下面是我在 VS 调试器崩溃前不久得到的。当我没有调试器查看它时,它会在 set 函数中抛出一个段错误。调试器一整天都在处理同样的事情。有什么想法吗?

Visual Studio Debug Session

我正在查看的对象:

[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; 在该位置属性中(注意缺少的 _ 从而无限递归)?

关于c# - 查看变量时 Visual Studio 调试器崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8073793/

相关文章:

javascript - 打印 HTML 页面时会添加额外的零

c# - 在网站中创建 "Did you mean XYZ"功能的想法

angularjs - typescript :找不到名称 'require'

vb.net - 检查某个键是否被按下?

c++ - Visual Studio 还能优化预编译代码吗?

c# - 如何使用 linq lambda 语法查找具有精确长度的子集

C# 从BackgroundWorker 更新DataGridView

c# - 扩展和过滤 C# 数组

c++ - 错误: “expression must have class type” & “left of must have class/struct/union”

.net - 如何在Visual Studio 2013中删除未使用的功能