This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 258053 - std::string is pretty printed in tooltip, but not in variables view
Summary: std::string is pretty printed in tooltip, but not in variables view
Status: STARTED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Maria Tishkova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-18 16:14 UTC by Vladimir Kvashin
Modified: 2016-09-01 19:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Real users see such values (String and Hash) (103.24 KB, image/png)
2016-02-18 21:04 UTC, soldatov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2016-02-18 16:14:15 UTC
std::string is pretty printed in tooltip:
  *&str="'\\\\t' = $TAB "

(well, there are 4 backslashes that drive me crazy... but this is the subject of a separate bug)

But in variables view I see 

@0x7fffffffd670: {static npos = <optimized out>, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x153d3a8 "'\\\\t' = $TAB "}}

for the same variable.

I think these two outputs should be unified.
I expect that variables view should show it pretty-printed as well.
Comment 1 Vladimir Kvashin 2016-02-18 16:16:37 UTC
This is very inconvenient, because, although in theory variables view contains string data too (at the end of its output), it is not visible in the column at all! (unless I expand my Variables view to the entire Netbeans window)
Comment 2 soldatov 2016-02-18 20:54:01 UTC
I want to add this bug describes case if real GDB Pretty-Printers are switched off. If we speak about developer-friendly Oracle Linux or Fedora Linux, GDB console commands doesn't return "{static npos = ..., _M_dataplus = ...}". Therefore IDE can't display such strange values.
Comment 3 soldatov 2016-02-18 21:04:03 UTC
Created attachment 158563 [details]
Real users see such values (String and Hash)