Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not expected value in debug watch #1093

Closed
ghost opened this issue Dec 26, 2016 · 2 comments
Closed

Not expected value in debug watch #1093

ghost opened this issue Dec 26, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 26, 2016

Environment data

.NET Command Line Tools (1.0.0-preview2-1-003177)

Product Information:
Version: 1.0.0-preview2-1-003177
Commit SHA-1 hash: a2df9c2576

Runtime Environment:
OS Name: Mac OS X
OS Version: 10.12
OS Platform: Darwin
RID: osx.10.12-x64
VS Code version:
C# Extension version:
1.6.2

Steps to reproduce

run dotnet new and put the following code into the Program.cs file

using System;

namespace ConsoleApplication
{
    public class Program
    {
        public static void Main(string[] args)
        {
            var format = System.Globalization.CultureInfo.InvariantCulture.DateTimeFormat;
            var d1 = DateTime.Parse("1/1/2017 20:00", format);
            var d2 = DateTime.Parse("1/1/2017 21:30", format);
            Console.WriteLine(d1<d2);
        }
    }
}

Set a break point at the Console.WriteLine(d1<d2); and run debug, add d1<d2 in watch.

Expected behavior

d1<d2 returns true

Actual behavior

d1<d2 returned false

@rajkumar42
Copy link
Contributor

@skilliscode Thanks for reporting the issue!

@gregg-miskelly
Copy link
Contributor

gregg-miskelly commented Dec 30, 2016

This is a dupe of #753. The issue is fixed in the 1.2 version of CoreCLR (which isn't released yet).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants