简体   繁体   English

当鼠标 hover 而不是可理解的日期字符串格式时,Visual Studio 调试器将日期时间显示为刻度

[英]Visual Studio debugger shows Date Time as Ticks when mouse hover instead of an understandable Date String Format

In visual studio (I'm using 2019), during debugging, when I hover over a DateTime object, it shows the date in Ticks instead of a readable date string (such as YYYY-MM-dd HH:mm:ss, etc).在 visual studio(我使用的是 2019)中,在调试过程中,当我在DateTime object 上输入 hover 时,它以 Ticks 显示日期而不是可读的日期字符串(例如 YYYY-MM-dd HH:mm:ss 等) .

The picture below shows this annoying behavior.下图显示了这种烦人的行为。

文本

I remember in my old visual studio 2017, it showed date-time objects in "YYYY-MM-DD HH:mm:ss.ttt" format.我记得在我的旧视觉工作室 2017 中,它以“YYYY-MM-DD HH:mm:ss.ttt”格式显示日期时间对象。 How do I change this?我该如何改变这个?

I agree with reynoldsbj .我同意reynoldsbj I think you have pinned the Ticks property in the LoadAreaTo Drop down menu bar so that it will overwrite the default Date property.我认为您已将Ticks属性固定在LoadAreaTo下拉菜单栏中,这样它将覆盖默认的Date属性。

This is a video about the detailed description:这是一个关于详细描述的视频:

在此处输入图像描述

You should unpin the property Ticks so that it will show date-time objects in YYYY-MM-DD HH:mm:ss.tt format.您应该取消固定属性Ticks ,以便它以YYYY-MM-DD HH:mm:ss.tt格式显示日期时间对象。

Click the dropdown in that previewer and unpin Ticks or pin Date if you want to see both.单击该预览器中的下拉菜单并取消固定刻度或固定日期(如果您想同时查看两者)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM