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.
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.
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?
(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.
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
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)