Discussion:
CString in debugger shows as ...
(too old to reply)
Anders Eriksson
2007-12-18 10:19:43 UTC
Permalink
Hello,

I'm not sure what I have done but all of a sudden all my CStrings will not
display it's string value as a tool tip. I just get a ...

How do I fix this?

// Anders
--
English is not my first, or second, language
so anything strange, or insulting, is due to
the translation.
Please correct me so I may improve my English!
Alex Blekhman
2007-12-18 17:25:38 UTC
Permalink
Post by Anders Eriksson
I'm not sure what I have done but all of a sudden all my
CStrings will not
display it's string value as a tool tip. I just get a ...
What version of Visual Studio do you use? Also, check
AutoExp.dat file in VS directory. It should contain expand
string for CString.

Alex
Anders Eriksson
2007-12-19 07:28:21 UTC
Permalink
Post by Alex Blekhman
What version of Visual Studio do you use?
I'm using 2005 Professional Edition SP1
Post by Alex Blekhman
Also, check
AutoExp.dat file in VS directory. It should contain expand
string for CString.
I have this:

[Visualizer]
; This section contains visualizers for STL and ATL containers
; DO NOT MODIFY

ATL::CStringT<char,*>|CSimpleStringT<char,*>|ATL::CSimpleStringT<char,*>{
preview([$c.m_pszData,s])
stringview([$c.m_pszData,sb])
}

ATL::CStringT<wchar_t,*>|CSimpleStringT<wchar_t,*>|ATL::CSimpleStringT<wchar_t,*>|ATL::CStringT<unsigned
short,*>|CSimpleStringT<unsigned short,*>|ATL::CSimpleStringT<unsigned
short,*>{
preview([$c.m_pszData,su])
stringview([$c.m_pszData,sub])
}



// Anders
--
English is not my first, or second, language
so anything strange, or insulting, is due to
the translation.
Please correct me so I may improve my English!
Alex Blekhman
2007-12-19 09:39:23 UTC
Permalink
I have the same contents in my "AutoExp.dat". If you expand
CString variable do you see the string there?

Alex
Anders Eriksson
2007-12-19 11:02:31 UTC
Permalink
Post by Alex Blekhman
I have the same contents in my "AutoExp.dat". If you expand
CString variable do you see the string there?
Alex
Yes, it looks somewhat like this

+ errmsg {...}

if I then expand it:
- errmsg {...}
- ATL::CSimpleStringT<wchar_t,1> {...}
+ m_pszData 0x042C8090 "Job file missing"

-
// Anders
--
English is not my first, or second, language
so anything strange, or insulting, is due to
the translation.
Please correct me so I may improve my English!
Alex Blekhman
2007-12-19 11:28:43 UTC
Permalink
Post by Anders Eriksson
Post by Alex Blekhman
I have the same contents in my "AutoExp.dat". If you
expand
CString variable do you see the string there?
Yes, it looks somewhat like this
+ errmsg {...}
- errmsg {...}
- ATL::CSimpleStringT<wchar_t,1> {...}
+ m_pszData 0x042C8090 "Job file missing"
I have no idea what went wrong then. Ensure that "Show raw
structure of objects in variables windows" setting is
unchecked in Debugging options.

Also, if you use Visual Assist, thne it may be its fault. I
noticed that sometimes interferes with debugger display.

Alex
Anders Eriksson
2007-12-19 14:05:27 UTC
Permalink
Post by Alex Blekhman
I have no idea what went wrong then. Ensure that "Show raw
structure of objects in variables windows" setting is
unchecked in Debugging options.
This is not checked
Post by Alex Blekhman
Also, if you use Visual Assist, thne it may be its fault. I
noticed that sometimes interferes with debugger display.
I don't think so...

Can you send me your autoexp.dat file so I can compare it with mine and
maybe find some error...


// Anders
--
English is not my first, or second, language
so anything strange, or insulting, is due to
the translation.
Please correct me so I may improve my English!
Anders Eriksson
2007-12-20 07:19:15 UTC
Permalink
Post by Anders Eriksson
Can you send me your autoexp.dat file so I can compare it with mine and
maybe find some error...
Thanks for the autoexp.dat file.

It looks exactly as mine!

So maybe there is some setting that has changed...

Anyone has an idea?

// Anders
--
English is not my first, or second, language
so anything strange, or insulting, is due to
the translation.
Please correct me so I may improve my English!
mrkdb
2008-01-02 12:41:55 UTC
Permalink
I think, unchecking following option should resolve the problem.

'Tools > Options > Debugging > General > Show raw structure of objects
in variables window'

Regards,
Kishor.
Anders Eriksson
2008-01-08 09:01:24 UTC
Permalink
Post by mrkdb
I think, unchecking following option should resolve the problem.
'Tools > Options > Debugging > General > Show raw structure of objects
in variables window'
I have already done this....

I added this to autoexp.dat, and now it works.
CString<*> =<m_pchData,st>
ATL::CStringT<*> =<m_pszData,st>
CSimpleStringT<*>=<m_pszData,st>
ATL::CSimpleStringT<*>=<m_pszData,st>


// Anders
--
English is not my first, or second, language
so anything strange, or insulting, is due to
the translation.
Please correct me so I may improve my English!
Loading...