This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Making the Watch window more helpful.


I found myself many times "dive" into the tree structure in the "Watch" window.
e.g for an "std::string" variable, I have to open 3 levels down to see the actual string value.
Is it possible to add a definition of types which are displayed on a single line?

1. "renaming" names in display: std:string is much more comprehensible type name than
	basic_string<char,std::char_traits<char>,std::allocator<char> > ...
2. dumping a string usually looks like:

- a		basic_string<char,std::char_traits<char>,std::allocator<char> > ...
  - public
  | - npos	cannot access memory at address ...
  -private
   - _M_dataplus _Alloc_hider {...}
   | allocator<char>
   - public
       +_M_p	(char*) 0xxx "hello"
    + _S_empty_rep_storage

It would be MUCH nicer to look like

+ a	std::string (char*)0xxxx "hello"


I have no idea where to look for it in the TCL code...

(BTW: such feature exist in Visual Studio 6.0 and above. a line in the AUTOEXP.DAT file containg the string:
std::basic_string<*>=<_Ptr>

displays the char* value of a string object)

dia,
	dror.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]