Chris
Chris

Reputation: 3688

Using Netbeans IDE 7.0.1 for C++, how to enable more debugging information (i.e. as with "-g3" with gdb)

As mentioned in the title, I am using NetBeans IDE 7.0.1 for C++ (for the assignments at the university). I was using gedit and terminal, but I would like to try my hand at IDEs.
I tried Eclipse but I seem to prefer Netbeans interface.
(All the above->with my laptop, running Ubuntu 11.10).

Well, I have some questions,

Thank you for your time!

Upvotes: 7

Views: 2377

Answers (1)

JCMS
JCMS

Reputation: 138

The compiler flag is -ggdb. It allows you to use breakpoints, know the values of variables and etc.

If you are just building in "debug mode", you will get minimal information, such as line of crash by opening the "call stack" page.

Eclipse is a bit better for debugging, but as an editor, I much prefer Netbeans over it for C++, while I prefer Eclipse for Java

EDIT: Also, you have to have setupped GDB as the debugger in Netbeans, but I'm pretty that's done by default.

Upvotes: 1

Related Questions