FaqCPlusPlusGdbDoesNotWork

(Difference between revisions)
(The debugger doesn't work. What's the first thing I should do?)
 
Line 2: Line 2:
===The debugger doesn't work. What's the first thing I should do?===
===The debugger doesn't work. What's the first thing I should do?===
-
The first thing to check is the version of the gdb executable you are using. You
+
There are two actually:
-
can get this by choosing Tools > Options and selecting C/C++ and the Build Tools tab.
+
* check that you're using correct gdb version ([[FaqCPlusPlusGdbVersionInfo| What version of gdb should I use?]])
-
Click Versions... and version information for your tool collection will be displayed.
+
* check that your project is compiled with debugger symbols (-g flag for gdb compiler is used)
-
 
+
-
From the command line, run '''gdb --version''' to get the version number.
+
-
 
+
-
See the FAQ entry [[FaqCPlusPlusGdbVersionInfo| What version of gdb should I use?]] for which gdb versions we support.
+

Current revision as of 13:13, 10 December 2009

The debugger doesn't work. What's the first thing I should do?

There are two actually:

  • check that you're using correct gdb version ( What version of gdb should I use?)
  • check that your project is compiled with debugger symbols (-g flag for gdb compiler is used)
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo