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.
It appears that the application arguments specified in the GDB command are not passed properly to the GDB command. Note I'm using GDB 8 because it's the only official version that builds on macOS Sierra
Can you attach GDB log? http://wiki.netbeans.org/GdbLog
Please provide GDB log and more details
Created attachment 165356 [details] GDB log example associated to the issue.
I'll try to explain with a bit more detail what I'm experiencing: - Setup: MacOS Sierra 10.12.6, NetBeans 8.2, Clang 9, GDB 8. - Project: Generation of a Test executable. This program receives several command line options and it exits with an 'usage' message if the provided option is unrecognized. Experienced issue in NetBeans: The program exits promptly when debugging from NetBeans. The debug command points to the program executable and provides some valid arguments. The NetBeans output shows the program 'usage' as if an invalid option was provided. I have tried with other programs, and other arguments combinations but the result is the same. It only seems to work when no program options are specified. Also, it seems supports for GDB 8 is not smooth. I was experiencing other issues as well: ignored breakpoints in dynamic libraries, unexpected termination, ignoring step command...
This may not be the forum to ask this but I'm a bit frustrated with the experience of NetBeans in Macos Sierra. I've been using NB for many years but for the past year I haven't been able to successfully compile and debug an OS X application with Netbeans. I have tried several versions of GDB and also lldb. Is there any other recommended alternative? are you guys planning to improve this support for next version?