Inspect value of std::stringstream in Visual Studio 2005

1.1k Views Asked by At

Is there a way to inspect the value ( .str() ) of std::ostringstream when debugging in VS2005? Like modifying the autoexp.dat file to make stringstream value visualizable?

1

There are 1 best solutions below

0
On BEST ANSWER

You have to dig a little deeper into the stringstream's base-classes.

This usually works for me while debugging in VS9:

(*(((*(std::basic_ios<char,std::char_traits<char> >*)(&(*(std::basic_istream<char,std::char_traits<char> >*)(&(*(std::basic_iostream<char,std::char_traits<char> >*)(&YOUR_STRINGSTREAM_INSTANCE)))))))._Mystrbuf))._Gfirst