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 210565 - IDE does not render strings in any useful way
Summary: IDE does not render strings in any useful way
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Maria Tishkova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-02 17:52 UTC by tbrunhoff
Modified: 2016-11-29 17:30 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
screenshot of very long string shown in debugger (781.55 KB, image/png)
2012-04-02 17:52 UTC, tbrunhoff
Details
wrapped tooltips (111.07 KB, image/png)
2012-04-16 16:33 UTC, Egor Ushakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2012-04-02 17:52:27 UTC
Created attachment 117680 [details]
screenshot of very long string shown in debugger

The fly-over mechanism for showing values is very useful. But given a long string, even one with embedded newlines, the ide does not try to render the string in any useful way. My guess is that the ide is just using whatever Gdb produces.  There are some useful setting, like 'set print pretty', although I don't see one for strings. In the command-line form of gdb, you would get wrap at the edge of the terminal window.

It seems that NB ought to do something more useful here. See attached screenshot for unhelpful output.
Comment 1 Egor Ushakov 2012-04-16 16:33:54 UTC
Created attachment 118356 [details]
wrapped tooltips

on my machines (S11 and Ubuntu) tooltips are wrapped at the edge of the editor window, debugger could do some work here but if NB window manager does not wrap tooltips on your platform this is a NB bug.
Comment 2 tbrunhoff 2012-04-16 16:46:59 UTC
The simplest solution, in this case, would be to render \n as a newline :-)
Comment 3 Egor Ushakov 2012-04-16 16:57:06 UTC
agree, still worth filing a bug on NB window manager that it does not wrap tooltips with your configuration
Comment 4 tbrunhoff 2016-11-29 17:30:23 UTC
Sorry... looking at this again, are you suggesting this should be retargeted to the NB window manager, or that another bug should be filed targeting NB window manager?