Linux Debugger

prefered VSCode with LLDB

Alternatives

CodeBlocks - Require a project

Create an empty project in target folder, point it to existing binary and add sources using recursive options.

Debugger advanced features:

  • set next statement
  • data breakpoint / conditions / counts
  • Breakpoints could not work if the path/folder you’ve placed your project contains spaces - Path with spaces

Install

$ sudo apt-get install codeblocks

KDevelop - Require a project

Full IDE + debug can work with makefile project.

from menu Project / New from template then Category=Standard / Project type = terminal => C++ with Make

choose folder (can be existing folder) give project a name (this must create a new none existing folder)

move/copy cpp files into that folder modify make to launch build

  • build
  • Debug Launch add new Executable => give path to executable

Install

GNAT

Nemiver

kdbg

Written on January 27, 2018, Last update on September 25, 2023
debug-c++ linux gdb