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.
The following scenario doesn't work: 1. Create "C/C++/Fortran Dynamic Library" project. 2. Create some "hello world" library function. 3. Create "C/C++/Fortran Application" project. 4. Use the library in this project (Properties->Linker->Libraries) 5. Set breakpoint in the library code. 6. Debug the application. Debugger will start but, won't stop on the breakpoint in the library code. Doesn't work for both OSS and GNU toolchains. System: Ubuntu 8.04 x86_64. For OSS toolchain "The spro.home property is not set" message is displayed during the debugger start. This issue should be fixed to make libraries debugging work.
More information about the issue. The following scenario works: 1. Set breakpoint in the library project. 2. Start the library project debugging by "Debug" or "Step into" command. 3. Select "Executable to use" from build result of the application project. The debugger will stop successfully on the breakpoint in the library.
breakpoints should be set on program stop in main, where libraries are loaded
Is this dbx or gdb? With dbx things should work unless the dynamic library is dlopened.
This scenario do works with OSS. So problem is only with GNU debugger.
more simple test case: - create Subproject sample - set breakpoint in hello4 (dynamic library) - debug main application It does not stop anywhere.
fixed in: http://hg.netbeans.org/cnd-main/rev/19474a96e05c now we're using gdb pending breakpoints. Also warn if gdb older than 6.8 is being used. We'll stop supporting such in 7.0.
Integrated into 'main-golden', will be available in build *201101160000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/19474a96e05c User: Egor Ushakov <gorrus@netbeans.org> Log: fixed #193764 (debugger doesn't stop on breakpoints in dynamic libraries)