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.
Steps to reproduce: - create local Welcome sample using MinGW - set line BP at 'return' statement - start debugger Result: Debugger does not stop on BP.
Created attachment 89385 [details] gdb log
fixed in: http://hg.netbeans.org/cnd-main/rev/453fae5cbf5e
Integrated into 'main-golden', will be available in build *200910140201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/453fae5cbf5e User: Egor Ushakov <gorrus@netbeans.org> Log: fixed IZ#174479 (Line BP do not work in MinGW)
The bug is still reproducible if the source file is placed in non-project directory (after add existing item).
Created attachment 92904 [details] gdb log
the problem is that MinGW stores relative paths to files like: C:/Users/egor/Documents/NetBeansProjects/Welcome_25/../Welcome_24/welcome.h and setting a breakpoint in an absolute path: C:/Users/egor/Documents/NetBeansProjects/Welcome_24/welcome.h does not work.
there is a workaround: when adding files to project set "store path as absolute" (not relative)
there is a workaround: when adding files to a projects set "store path as absolute" (not relative)
The workaround works. There is an issue with long paths then but the main bug can be downgraded.
this looks like a bug in gdb implementation, now there is one more workaround: use -J-Dgdb.breakpoints.shortpaths=true to send short paths to gdb.