Reputation: 51
Everytime I try to debug my project with netbeans it doesn't let me do so. It gives the following error:-
"GDB has unexpectedly stopped with return 1"
And when I choose 'ok' it just stops everything. My project runs without any errors when I try to do so in netbeans. I want to step into my code and not being able to do so. Can somebody help me out with this? Thanks.
Upvotes: 5
Views: 6855
Reputation: 1
I faced with not working GDB on Netbeans 8.2 with this message Debugger Error: Error
And I find the next solution:
gdb -version
GNU gdb (GDB) (Cygwin 13.2-1) 13.2 Copyright (C) 2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
Upvotes: 0
Reputation: 382512
Gdb Init File was the problem for me.
Run > Set Project Configuration > Customize > Debug
It was pointing to ~/.gdbinit
, I cleared that field, and it worked.
Must be something crazy I had in my .gdbinit
, even though it works fine with raw gdb
.
Netbeans 8.2.
Upvotes: 0
Reputation: 51
I had the same problem. I cleared my old debug breakpoints and this clear up the issues. I think the old breakpoints were pointing to dead code.
Upvotes: 5