Debugger visualizers for time classes (autoexp.dat)

Started by
2 comments, last by SiS-Shadowman 13 years, 8 months ago
Hi,

Has anyone have debugger visualizers (or autoexpands) for time classes for Visual Studio?
I'm interested in CTime and CTimeSpan classes (ATL, MFC), but if you have for some other time classes then I'm sure I'll be able to change them apropriately.

I tried to write them myself, but just can't get them to work...

Zbyl
Advertisement
Can you post your attempts? Which version of Visual Studio are you using?

I'm using VS 2005. Here are my simplest attempts. But they don't work.
[Visualizer]ATL::CTime{    preview([$c.GetDay()])}CTime{    preview([$c.GetDay()])}ATL::CTimeSpan{    preview([$c.Format("Total days: %D, hours: %H, mins: %M, secs: %S")])}
AFAIK you can't call functions, instead you visualize the data members of a class directly.

This is taken from the [AutoExpand] section of my autoexp.dat from Visual Studio 2010 (It's the same for 2008 though, so I guess it could work for 2005 as well):

CTime =time=<m_time>

This topic is closed to new replies.

Advertisement