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

Summary: std::string is pretty printed in tooltip, but not in variables view
Product: cnd Reporter: Vladimir Kvashin <vkvashin>
Component: DebuggerAssignee: Maria Tishkova <mromashova>
Status: STARTED ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Real users see such values (String and Hash)

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)