2

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?

Stan
  • 37,207
  • 50
  • 124
  • 185

1 Answers1

2

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
tsotso
  • 322
  • 1
  • 2
  • 9