在调试器vb.net 2003中更改变量的外观

时间:2021-02-22 20:43:09

I've been given an old VB.net 1.1, Visual Studio 2003, project. When debugging DateTime shows as #09:34:00 AM#, the date-part is hidden. I would like to see which date the DateTime is.

我已经获得了一个旧的VB.net 1.1,Visual Studio 2003项目。当调试DateTime显示为#09:34:00 AM#时,日期部分被隐藏。我想看看DateTime是哪个日期。

I've tried to modify mcee_cs.dat, but that doesn't seem to do anything. Is there some other file I should modify to get my desired behavior?

我试图修改mcee_cs.dat,但这似乎没有做任何事情。是否有其他文件我应该修改以获得我想要的行为?

/L

1 个解决方案

#1


You can add a watch for a custom expression. OK, simple enough: add a watch for the following expression:

您可以为自定义表达式添加监视。好的,足够简单:为以下表达式添加一个监视:

YourDateVariable.ToString("CustomFormatString")

See the MSDN for custom format strings.

有关自定义格式字符串,请参阅MSDN。

#1


You can add a watch for a custom expression. OK, simple enough: add a watch for the following expression:

您可以为自定义表达式添加监视。好的,足够简单:为以下表达式添加一个监视:

YourDateVariable.ToString("CustomFormatString")

See the MSDN for custom format strings.

有关自定义格式字符串,请参阅MSDN。