Skip to main content
GameDev.net gamedev.net
🔒 Locked

Debugger visualizers for time classes (autoexp.dat)

Started by Zbychs Aug 16, 2010 at 8:52 AM 2 replies 2.7k views
Original Post
Zbychs
Zbychs
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
Muhammad Haggag
Muhammad Haggag
Can you post your attempts? Which version of Visual Studio are you using?

Zbychs
Zbychs
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")])}
SiS-Shadowman
SiS-Shadowman
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>

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.