user1544128
user1544128

Reputation: 582

Break disappear while debugging C in Netbeans

everybody.

I have installed gdb (throw cygwin) on my Windows 8 machine with NetBeans 7.3.

As the title said my problem is that the breakpoints just disappear when I run the debug ( to reappear as soon as it finished), so basically I have a normal run.

Any ideas how to fix that, the tutorial on the Netbeans page doesn't really help, and I have found a solution with a special flag here but it doesn't work.

Upvotes: 0

Views: 79

Answers (1)

Devolus
Devolus

Reputation: 22104

If you compiled your code with optimizer flags, then the line may not exist. When debugging, compile your code with -g and remove -O

Upvotes: 1

Related Questions