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 50421 - [40cat] No support for watching long arrays.
Summary: [40cat] No support for watching long arrays.
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 4.x
Hardware: PC All
: P2 blocker with 1 vote (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 49782 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-14 12:51 UTC by Jan Jancura
Modified: 2006-03-24 09:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Jancura 2004-10-14 12:51:42 UTC
No support for watching long arrays.
Comment 1 Jiri Kovalsky 2004-11-22 11:11:24 UTC
This issue was as well reported in NetCAT program.
Comment 2 _ lcincura 2005-01-27 14:15:44 UTC
This is key feature for debugging.
Rising priority to be sure it will be adressed in 4.1
Comment 3 Jan Jancura 2005-01-27 16:24:05 UTC
1) user can watch content of arrays using watches view - so, there is
workarround
2) this is not a bug, but RFE. this functionality has not been
implemented in nb4.0 too - no big complains. We can not reuse nb3.6
solution.
3) This is definitelly not key feature of debugger. Key features of
debugger are Line Breakpoints, Watches, Expression evaluation, etc.

=> P1 RFE

How to solve it:
================
1) Implement special view (dialog) for long arrays
2) Show first 100 items only, and rest of items in special subnodes like:

[0]
[1]
...
[99]
[100..199]
[200..299]
...
Comment 4 _ lcincura 2005-01-27 16:48:00 UTC
See the count of votes for this bug. This IMO does not mean no complains.

I cannot agree this is RFE. The described workaround is silly and I
cannot imagine users watching 100 nodes (can you imagine to create
~100 watches by hand?). This limits the functionality of debugger to
Jarda's description - it's a toy!
Implement your solution number 2, it's elegant and users will
appreciate it. Or make some use of [...] button in tree table view and
open the dialog with all nodes in array. The problem of this solution
is, it will be (probably) modal => will not allow you to invoke
debugger actions, and will cover part of IDE.
Comment 5 Jan Jancura 2005-01-28 11:17:32 UTC
creating a new dialog, or changing node structure is feature. we have
feature freeze now.
Comment 6 _ lcincura 2005-01-28 11:45:33 UTC
Do not try this. You have to fix this for 4.1.
Comment 7 arseniy 2005-02-09 09:41:49 UTC
RFE, rescheduling for future
Comment 8 _ lcincura 2005-05-11 12:44:11 UTC
This is a must to fix it for next release.
Comment 9 Roman Ondruska 2005-05-11 14:44:02 UTC
*** Issue 49782 has been marked as a duplicate of this issue. ***
Comment 10 Martin Entlicher 2005-05-17 18:04:09 UTC
The support for long arrays is added. Now it's possible to inspect all elements
of an array. The portions of the array are nested:

/cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/models/LocalsTreeModel.java,v
 <--  LocalsTreeModel.java
new revision: 1.27; previous revision: 1.26

/cvs/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/models/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.23; previous revision: 1.22

/cvs/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/models/VariablesActionsProvider.java,v
 <--  VariablesActionsProvider.java
new revision: 1.10; previous revision: 1.9

/cvs/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/models/VariablesNodeModel.java,v
 <--  VariablesNodeModel.java
new revision: 1.9; previous revision: 1.8

/cvs/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/models/VariablesTableModel.java,v
 <--  VariablesTableModel.java
new revision: 1.9; previous revision: 1.8
Comment 11 Martin Entlicher 2005-06-03 18:11:48 UTC
The fix is merged into release41_fixes branch - preparing for hotfix update:

/shared/data/ccvs/repository/debuggerjpda/src/org/netbeans/modules/debugger/jpda/models/LocalsTreeModel.java,v
 <--  LocalsTreeModel.java
new revision: 1.24.12.1; previous revision: 1.24

/shared/data/ccvs/repository/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/models/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.22.26.1; previous revision: 1.22

/shared/data/ccvs/repository/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/models/VariablesActionsProvider.java,v
 <--  VariablesActionsProvider.java
new revision: 1.9.12.1; previous revision: 1.9

/shared/data/ccvs/repository/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/models/VariablesNodeModel.java,v
 <--  VariablesNodeModel.java
new revision: 1.8.12.1; previous revision: 1.8

/shared/data/ccvs/repository/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/models/VariablesTableModel.java,v
 <--  VariablesTableModel.java
new revision: 1.8.12.1; previous revision: 1.8
Comment 12 Milan Kubec 2005-07-15 08:39:23 UTC
Verified.