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 107553 [details] gdb log Scenario: - Create Argument project - Set 2 line breakpoints at 39th and 44th lines - Push Debug Main Project button ==> debugger stopped at 39th line - Press F8 ==> debugger stopped at 44th line
I see this problem on Windows XP also (MinGW, gdb 6.8). Windows XP specific scenario: - Create Argument project - Set line breakpoint at 35th line - Set line breakpoint at 44th line - Push Debug Main Project button ==> debugger stopped at 35th line - Press F8 ==> debugger stopped at 44th line
*** Bug 198612 has been marked as a duplicate of this bug. ***
I and a colleague have also experienced this issue. We are both running CentOS 5.6 64-bit with NetBeans 7.0, Java 1.6.0_25 64-bit, and gdb 7.0.1-32.el5_6.2 in a VirtualBox VM running on a Windows 7 host. The debugger always hits breakpoints. The first time an attempt is made to step (into, over, or out) or to run-to-cursor it acts as if continue was selected. If another breakpoint is reached after this, stepping and running-to-cursor works as expected. It does not work, however, until after the first attempt to step or run-to-cursor, no matter how many breakpoints were hit before that.
fixed in: http://hg.netbeans.org/releases/rev/17251aa704cd
now it always stops in main
original issue appeared because breakpoint on line 39 is actually the same breakpoint as debugger internal breakpoint in main.
fixed in: http://hg.netbeans.org/releases/rev/05fc326fd8e6
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/ffbe840fc8e8 User: Egor Ushakov <gorrus@netbeans.org> Log: fixed #197493 (MacOSX and Windows: Step Into works as Continue) (transplanted from 17251aa704cd942c35186344a4d147c5a8955e8d)
verified NetBeans IDE 7.0.1 Dev (Build 201106030000)
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/cf76a84a855d User: Egor Ushakov <gorrus@netbeans.org> Log: fixed broken merge for #197493 (MacOSX and Windows: Step Into works as Continue)