Visual Studio 2015调试器损坏 - 这是一个错误还是仅仅是我?

Jaa*_*ans 6 corruption visual-studio-debugging visual-studio-2015

我疯了吗?我一直都能相信调试器吗?

事实证明,在与VS2015的调试会话期间,当我例如在立即窗口中更改变量的值时,该分配导致分配"垃圾"值.它每次都是相同的垃圾值,但完全错误.

我把它简化为最简单的控制台应用程序repro,以防万一你可能会认为我同意我对疯狂的自我评估,我还制作了一个截然不同的截图视频剪辑.

您是否也遇到此问题或者这是本地机器问题?

以下是一个驱动器链接:

PS:我正在运行Windows 10 Enterprise x64,VS2015 Enterprise,其中包含适用于OS和VS的所有当前更新.底层硬件是现代硬件,我在VS2013下没有遇到任何问题.

internal class Program
{
    private static DateTime? _nullableDateTime;

    private static void Main( string[] args )
    {
        // Use the debugger to step through this repro. 
        // * Not sure if it matters, but I started with F11 right from the         start without any breakpoints.
        // ==============================================================================================

        // 1. Variable starts off with default of null
        //    The following statement will confirm that with an "empty" value in the console window
        Console.WriteLine( _nullableDateTime );

        // 2. The next statement assigns the current date and time
        _nullableDateTime = DateTime.Now;

        // 3. The following statement will confirm the correct value in the console window
        Console.WriteLine( _nullableDateTime );

        // 4. THIS IS WHERE THE TROUBLE STARTS
        //    Now, using the immediate window, change the value of the variable with the 
        //    following statement (after the colon) : _nullableDateTime = DateTime.Now
        //    
        //  
        //

        // 5. After changing the value via the immediate window, let's look at it's value now.
        //    For me (as can be seen in the video), I get the completely wrong value in the console window.
        Console.WriteLine( _nullableDateTime );
    }
}
Run Code Online (Sandbox Code Playgroud)

我将开始为VS Connect问题整理相同内容.

编辑:我开始怀疑这对我来说是否是一个问题,因为没有人确认这也是他们正在发生的事情.

编辑:连接问题已在此处提交.

Eli*_*nti 4

我可以确认在我安装的 Visual Studio 2015 中发生了类似的情况,我也在 Visual Studio 2013 中运行了相同的代码(幸运的是我在升级时没有卸载)并且它不会在那里发生:

v2013 与 2015

所以,是的,您似乎刚刚发现了 Visual Studio 2015 中的一个错误(我的计算机运行的是 Windows 7 Pro,因此这不是 Windows 10 问题)。不幸的是,我缺乏专业知识来评论你的心理健康,所以在这方面不要做出任何假设:-)