Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Watching strings in the watch window (Can I view a std::string type or char* as text and not as a complex structure or array?)
Watching strings in the watch window [message #668811] Sat, 07 May 2011 19:19 Go to next message
David Sackstein is currently offline David SacksteinFriend
Messages: 24
Registered: March 2011
Junior Member
The description says it all ...
Thanks
Re: Watching strings in the watch window [message #669422 is a reply to message #668811] Tue, 10 May 2011 09:52 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
char* is always shown as text in the detail pane (lower pane in the Variables view). This works in the Debug hover (hover with the mouse cursor over the variable during debug), too. To show std::string you need a recent gdb with Python support (it was introduced in gdb 7) and install the pretty printers for STL code.
See http://sourceware.org/gdb/wiki/STLSupport


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:follow-fork-mode child makes exception
Next Topic:Shortcuts for own Plugins
Goto Forum:
  


Current Time: Fri Apr 26 22:04:39 GMT 2024

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

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

Back to the top