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 197449 - watched long text variables (string or char*) values are truncated
Summary: watched long text variables (string or char*) values are truncated
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.0
Hardware: PC All
: P3 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-05 15:36 UTC by flavio80
Modified: 2011-06-01 13:22 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
the string variable were truncated (69.40 KB, image/png)
2011-04-05 15:36 UTC, flavio80
Details

Note You need to log in before you can comment on or make changes to this bug.
Description flavio80 2011-04-05 15:36:31 UTC
Created attachment 107513 [details]
the string variable were truncated

I have a long text variable inside a C++ project and I wish to view the entire value. When I add it into the watch tab I can view just a portion of the text, with some "..." at the end of the value.

I tried to click on the debugger pane button [...] but the value is the same (truncated).

I had this problem on the 6.9.1 release too.
Comment 1 Alexander Pepin 2011-04-25 10:07:13 UTC
Indeed there is a limit (about 200 chars) and after that remaining symbols are not shown. It looks like a GDB problem, am I right?
Comment 2 flavio80 2011-04-26 07:49:35 UTC
(In reply to comment #1)
> Indeed there is a limit (about 200 chars) and after that remaining symbols are
> not shown. It looks like a GDB problem, am I right?

I think it's not. I tried GDB with other IDEs and that limit was configurable (i.e. 0=no limit).
It should be configurable in Netbeans as a C\C++ option, in my opinion, or just set it to no limits.
Comment 3 Egor Ushakov 2011-05-31 10:31:21 UTC
fixed in:
http://hg.netbeans.org/releases/rev/1d837d65ad8d

now we always do "set print elements 0",
if needed, this could be reset with
-J-Dgdb.print.elements=x
Comment 4 Quality Engineering 2011-06-01 13:22:15 UTC
Integrated into 'main-golden', will be available in build *201106010401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/02252875c925
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #197449 (watched long text variables (string or char*) values are truncated)
(transplanted from 1d837d65ad8d986d77c67b8a7f4365c181b93a84)