User forums > General (but related to Code::Blocks)
STL Pretty Print last column
GravityWell:
--- Quote from: oBFusCATed on October 25, 2012, 04:41:16 pm ---Yes, please, if you have time write a guide. It will be very helpful.
You can do it on the wiki (use the same login name/password as the one used for the forum).
--- End quote ---
Posted in the forum, in the process of adding it to the Wiki.
killerbot:
--- Quote from: oBFusCATed on October 25, 2012, 10:18:59 am ---
--- Quote from: killerbot on October 25, 2012, 10:04:42 am ---turning long string into fixed width, multiple line ?
--- End quote ---
No, why would I do that? Most of the times you know what is the type of the variable.
--- End quote ---
no we don't : auto x ;-)
GravityWell:
As with any GUI element, I think there should be a maximum size (maybe user configurable), and it shouldn't just keep expanding indefinitely off the screen even if there is a lot of text. Maybe select a reasonable default maximum size and let the user resize the popup and save the size settings.
oBFusCATed:
--- Quote from: killerbot on October 25, 2012, 08:26:12 pm ---no we don't : auto x ;-)
--- End quote ---
You know, but you don't care about it:) or said otherwise you don't need to know the type, it is not human readable anyway:)
--- Quote from: GravityWe11 on October 25, 2012, 09:07:56 pm ---As with any GUI element, I think there should be a maximum size (maybe user configurable), and it shouldn't just keep expanding indefinitely off the screen even if there is a lot of text. Maybe select a reasonable default maximum size and let the user resize the popup and save the size settings.
--- End quote ---
I can limit it, but resizing is hard with popups, everything is hard with popups :(
GravityWell:
I guess the only time it comes into play is with the STL templates. If there was some way to get the python pretty printer to handle that column, the "whatis" from GDB, then we could just modify the printer, to make it return something nice like just "vector", or "vector of strings", rather than a huge line of gibberish. The user could always look at the code to see what makes up the vector, but in any case, if it was controlled by pretty printer, we could make it do what we want. I haven't been able to figure out if GDB's python can intercept and handle 'whatis'.
Navigation
[0] Message Index
[*] Previous page
Go to full version