Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Increase length of the variable value displayed during hover
Increase length of the variable value displayed during hover [message #228747] Wed, 14 January 2009 17:14 Go to next message
Eclipse UserFriend
While debugging, I hover over a std::string. The value is displayed in a
tooltip, but it is truncated. For example,

myString = {static npos = 18446744073709551615, _M_dataplus =
{<std::allocator<char>> = {<__gnu_ ...

Only the first 86 characters (or 90 if you count the " ...") are
displayed, so the text value, the part I really want to see, has been
removed!

How can I increase the maximum length of the value displayed to some value
like 200 or 300 that is sufficient to include the text value?

Many users have already complained about how the display of std::string is
not straightforward. I agree, but for now, I'll tolerate the rest of the
immaterial stuff if I can just see the text value.


John McGehee
http://www.voom.net
Re: Increase length of the variable value displayed during hover [message #736144 is a reply to message #228747] Thu, 13 October 2011 12:52 Go to previous messageGo to next message
Eclipse UserFriend
John,

I have the same gripe/question. Did you find an answer?

Chris
Re: Increase length of the variable value displayed during hover [message #736662 is a reply to message #736144] Fri, 14 October 2011 03:46 Go to previous message
Eclipse UserFriend
When you have gdb 7.0 or later you can install so-called pretty printers for libstdc++.

see http://wiki.eclipse.org/CDT/User/FAQ#How_can_I_inspect_the_contents_of_STL_containers.3F
Previous Topic:Include Directories Disappear
Next Topic:Some Eclipse / CDT questions
Goto Forum:
  


Current Time: Fri Jul 18 13:32:27 EDT 2025

Powered by FUDForum. Page generated in 0.04128 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top