CString and Intellisense
-
Hello all. When I debug a Visual C++ 9 application and want to see a CString variable's value in the watch tab, it only displays a memory address. If I wish to see the string, I have to select CString's m_pszData member. I remember that one could customize Intellisense so that it would show some specific value of a certain class. I've been googling for a while but haven't found something useful: I only get references to DebuggerDisplayAttribute class, but since that's a managed class I can't use it. So, does anybody have a clue on how to configure Intellisense? Thanks in advance.
-
Hello all. When I debug a Visual C++ 9 application and want to see a CString variable's value in the watch tab, it only displays a memory address. If I wish to see the string, I have to select CString's m_pszData member. I remember that one could customize Intellisense so that it would show some specific value of a certain class. I've been googling for a while but haven't found something useful: I only get references to DebuggerDisplayAttribute class, but since that's a managed class I can't use it. So, does anybody have a clue on how to configure Intellisense? Thanks in advance.
Maybe you can edit the autoexp.dat file (somewhere in the VS folder) to do that ? (just google for that).
Watched code never compiles.
-
Maybe you can edit the autoexp.dat file (somewhere in the VS folder) to do that ? (just google for that).
Watched code never compiles.
Yep, that did the trick. I found this article[^] that explains how to do it. And although it references VC6 it works quite well in VC9, the only difference being that autoexp.dat file is located at
C:\Program Files\Microsoft Visual Studio 9.0\Common7\Packages\Debugger
(in my machine, at least). Thanks for the help!