Debugger cannot display content of the std::string - "<Error reading characters of string.>" - by MichalK

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


2
0
Sign in
to vote
ID 721456 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 1/29/2012 1:44:25 PM
Access Restriction Public
Moderator Decision Sent to Engineering Team for consideration

Description

Debugger doesn't display content of std::strings, and std::wstrings. Quick watch and popup tool tips show "<Error reading characters of string.>". Rebuilding solution doesn't help.
Sign in to post a comment.
Posted by Microsoft on 2/1/2012 at 1:21 PM
Hi,

Thanks for reporting this issue. While you weren't able to provide a repro, which usually results in a No Repro resolution, I'm resolving this as Fixed because it's almost certainly a duplicate of http://connect.microsoft.com/VisualStudio/feedback/details/640602/vs2010-debugger-watching-std-string-with-iterator-debug-level-0-does-not-work which we have already fixed in VC11.

This bug was triggered by changing _ITERATOR_DEBUG_LEVEL (or the settings it superseded, _SECURE_SCL and _HAS_ITERATOR_DEBUGGING) from its default values. I strongly recommend against modifying this setting.

If you have any further questions, feel free to E-mail me at stl@microsoft.com .

Stephan T. Lavavej
Visual C++ Libraries Developer
Posted by MS-Moderator07 [Feedback Moderator] on 1/29/2012 at 9:23 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by MS-Moderator01 on 1/29/2012 at 2:41 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)