Monday, 15 September 2014

c++ - Why doesn't Netbeans stop at my breakpoints? -



c++ - Why doesn't Netbeans stop at my breakpoints? -

i created c++ project on netbeans 8.0.1 existing sources , makefile.

i ran build ran makefile fine , built executable named a.out.

the problem when set breakpoint in ide doesn't pause there.

what issue?

none of other questions on site solved issue.

makefile:

cc=g++ build: foo.cpp foo.h main.cpp $(cc) foo.cpp foo.h main.cpp

i have encountered issue too. there few possible solutions:

make sure you're building debug build, , -g part of compiler command when build (it should default, must double check, since seem using own makefile). restart netbeans , clean build. maybe helps. use gdb directly, rather via netbeans gui. in experience gdb works, netbeans not reliable debugging, , has problems reasons unknown me. utilize old command-line debuggers reason.

c++ netbeans

No comments:

Post a Comment