-
Notifications
You must be signed in to change notification settings - Fork 676
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
DateTimeOffset comparison on Debug Console totally messed up #1677
Comments
This looks like a bug in CoreCLR. It was fixed in .net core CLR 2.0 if you want to give it a try. I can try and help more when I get back from vacation if needed. |
@gregg-miskelly if it's a bug from CoreCLR, why the following code in the program works at runtime and debugging, but those statements i mentioned above malfunctioned in the var f = d == d2;
var f2 = d > d2;
var f3 = d2 > d;
var f4 = d < d2;
var f5 = d2 < d; |
Because the low level debugging support is in CoreCLR, and that is where the bug was. |
i've tried the same code on
VS Code version: It doesn't have this issue. I'll try it on |
Tried to install On
|
@gregg-miskelly So i've upgraded my So this can be closed, I think. |
Environment data
dotnet --info
output:VS Code version:
1.14.2
C# Extension version:
1.11.0
Steps to reproduce
Given the below code
When debugging it, in the
Show Dedug
window I can seef
istrue
, as well asf2
,f3
,f4
andf5
are allfalse
which are correct. But if I do comparisons ofd
andd2
in theDebug Console
then odd things happened!Expected behavior
Actual behavior
The text was updated successfully, but these errors were encountered: