Visual Studio 2015 Debugger Corruption - Is it a bug or just me?

牧云@^-^@ 提交于 2019-12-04 05:39:10

I can confirm something similar happens in my install of Visual Studio 2015 I also ran the same code in Visual Studio 2013 (which luckily I did not uninstall when I upgraded) and it does not happen there:

So yes it does seem as if you've just uncovered a bug in Visual Studio 2015 (my machine is running Windows 7 Pro so this is not a Windows 10 issue). Unfortunately I lack the professional knowledge to comment on your mental well being so make no assumptions on that regard :-)

Deniz Düleç

Similar problem here. Just take a Class and target .NET 3.5

public class DoSomething
{
    public void Makeit()
    {
    //  Set Breakpoint here
        SortedList<string, string> sortedList = new SortedList<string, string>();
        sortedList.Add("test", "1");
        sortedList.Add("test2", "2"); 
        //when breakpoint hits, uncomment the next line and press F5
        //sortedList.Add("test4", "5");
//Exception


class Program
{
    static void Main(string[] args)
    {
        TestLibrary.DoSomething bla = new TestLibrary.DoSomething();

        bla.Makeit();
    }
}

[

]
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!