GdbLog

Revision as of 17:57, 2 December 2010 by Gorrus (Talk | contribs)

Netbeans C/C++ debugger logs all communication with gdb in a special file called "Gdb Log".

To find it you can look for gdb-cmdsXXX.log (where XXX is a number) in your temp folder (/tmp or /var/tmp or other). The file is deleted on IDE exit, so do not close the IDE. Common tmp locations are:

  • Windows: <userdir>\AppData\Local\Temp
  • Solaris & Linux: /tmp or /var/tmp
  • MacOS: /private/var/folders/.../-Tmp-

on Unix-like platforms you can try "echo $TMPDIR"

Also you can see the log in the IDE during debugging, to do that you need to enable debugging console

UPDATE: in NB 7.0 gdb console can be used without additional hacks in Main menu/Window/Debugging/Debugger console.

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