5

I am new to Eclipse Helios and wonder how can one show the gdb traces in eclipse.

Open the way
  • 26,225
  • 51
  • 142
  • 196

3 Answers3

3

problem solved, under console, we can select the different views; gdb, gdb traces, and so on

Open the way
  • 26,225
  • 51
  • 142
  • 196
  • For anyone using Eclipse Neon and newer, this has changed since Eclipse Neon CDT 9.2 release. GDB traces option does not appear by default in the Console view. It must be first enabled in the Preferences as in the answer by @metdos. This change is documented: https://wiki.eclipse.org/CDT/User/NewIn92 – AlexF May 12 '21 at 17:31
2

Go to Preferences/(C/C++)/Debug/GDB, in General Behavior part, mark the next checkbox:

Show the GDB traces consoles with character limit

metdos
  • 13,411
  • 17
  • 77
  • 120
0

Install the necessary additional Eclipse plugins as explained here, then Run>Debug. The debug windows will open. When your program crashes, you will find the backtrace in the "Debug" window

Andrea Araldo
  • 1,332
  • 14
  • 20