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.
Product Version: NetBeans IDE Dev (Build 201305142300) Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11 System: Linux version 3.0.0-12-generic running on amd64; UTF-8; cs_CZ (nb) User directory: /home/cesilko/.netbeans/dev Cache directory: /home/cesilko/.cache/netbeans/dev Description: ============ If user selects "Greater than" type of breakpoint hit count it actually stops debugging when desired breakpoint hit count is reached not 1 hit later as it should be. Steps to reproduce: =================== 1. Create a sample Java application and add this code snippet into its main(String[] args) method: 18 for (int i = 0; i < 10; i++) { 19 System.out.println("Round: " + i); 20 } 2. Create line 19 conditional breakpoint with "Greater than" type of "Break when hit count is" rule and value 4. 3. Invoke "Debug > Debug Project" from main menu. 4. After a while debugging session is paused. 5. Verify that there are only 3 lines in the output instead of 4: Round: 0 Round: 1 Round: 2
Fixed by changeset: 254071:e37cd26d7920 http://hg.netbeans.org/core-main/rev/e37cd26d7920
Integrated into 'main-golden', will be available in build *201305192300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/e37cd26d7920 User: mentlicher@netbeans.org Log: #229855: Set the breakpoint request's hit count to the hit count + 1 when it's supposed to break on a hit count greater than the supplied value.
Product Version: NetBeans IDE Dev (Build 201305262300) Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11 System: Linux version 3.0.0-12-generic running on amd64; UTF-8; cs_CZ (nb) User directory: /home/cesilko/.netbeans/dev Cache directory: /home/cesilko/.cache/netbeans/dev