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 breakpoint I set in main() via the IDE is not being respected. The program runs to completion, and I get the following error dialog. Title: Debugger Error Message: The program is not being run. When I launch the same debugger via the command line, I don't get this problem: (gdb) b infer.cpp:339 Breakpoint 1 at 0x1000055a9: file ../../src/bin/infer.cpp, line 339. (gdb) r Starting program: /Users/jeff/Workspaces/NetBeans/my_fastInf/build/bin/infer Breakpoint 1, main (argc=1, argv=0x7fff5fbff188) at ../../src/bin/infer.cpp:339 339 clock_t startClock = 0 ; The project build result in properties > build > make is set to the executable being debugged.
Could you please provide me with a gdb log (http://wiki.netbeans.org/GdbLog)?
Created attachment 147851 [details] gdb log gdb log as requested. The missing source file referenced in the log exists no disk. otp589361ots:T jeff$ ls -atlrh /Users/jeff/Workspaces/NetBeans/fastInf/src/bin/infer.cpp -rwxr-xr-x 1 jeff staff 13K Apr 9 17:03 /Users/jeff/Workspaces/NetBeans/fastInf/src/bin/infer.cpp
As I can see you tried a little bit different scenario in the command line mode: ../../src/bin/infer.cpp refers to /Users/jeff/Workspaces/NetBeans/my_fastInf/src/bin/infer.cpp but not to /Users/jeff/Workspaces/NetBeans/fastInf/src/bin/infer.cpp PLease try specifying the full path to the file (/Users/jeff/Workspaces/NetBeans/fastInf/src/bin/infer.cpp) in the command line mode and provide me with a result.
> The missing source file referenced in the log exists no disk. This means that GDB is unable to find an appropriate symbol table for the file in an executable being debugged. It looks like you have 2 projects with the same sources and you tried setting a breakpoint in the binary from the first project using a link to the sources from the second project.
That could be the cause of what's happening. I can't remember what I might have done for my Netbeans to be working on Project A but editing files from Project B. Maybe I copied the whole Netbeans project directory and some of the project links were absolute? In any case, we can resolve this until I have more info. Thanks, Jeff