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 213762 - NetBeans does not update variable's children if the variable has more than 100 children
Summary: NetBeans does not update variable's children if the variable has more than 10...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on: 213065
Blocks:
  Show dependency tree
 
Reported: 2012-06-07 17:21 UTC by henk89
Modified: 2015-07-16 01:21 UTC (History)
0 users

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 henk89 2012-06-07 17:21:12 UTC
1. Create a vector containing another vectors as elements
2. Toggle breakpoints before and after the initialization of the vector
3. Start debugging
4. Stop on the first breakpoint
5. Expand the variable and some of in the Variables tab
6. Press Step Over several times and/or Continue

Actual result:
Expanded children are not updated sometimes.
Comment 1 hooluupog 2012-07-21 02:24:13 UTC
Thanks for fixing Bug 213065. But i think i had another related problem to report which still appeared in netbeans 7.2 RC.  The low performance of showing lots of elements when debugging. After fetching 10000+ or so elements and showing them in the watch window, then the performance is very low. For example, when i scrolled or dragged mouse down to show more elements(10000+elements already showned) netbeans will pause and become unresponsive for a few seconds even half a minutes(sometimes it freezed and i had to  kill its process in task manager). it is so annoying. As a reference, I debugged the same code in vs2010(create a CLR
c++ project) and the performance is ok. Similarly, the performace of debugging
directly in gdb CLI is also great.
Comment 2 Alexander Simon 2015-07-15 10:14:19 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/ae98115cbb97

Checked on sample:
#include <stdio.h>
#include <iso/stdlib_iso.h>
#include <cstdlib>
#include <vector>
#define SIZE 100000

using namespace std;

int main(int argc, char** argv) {
    vector<int> in;
    in.resize(SIZE);
    for(int i = 0; i < SIZE/1000; i++) {
        for(int j = 0; j < 1000; j++) {
            in[i*1000+j] = rand();
            in[j] = rand();
        }
        printf("loop %d\n", i); // breakpoint here
    }
    return 0;
}
Comment 3 Quality Engineering 2015-07-16 01:21:26 UTC
Integrated into 'main-silver', will be available in build *201507160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ae98115cbb97
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #213762 NetBeans does not update variable's children if the variable has more than 100 children