KDbg is an open source and free graphical software implemented in C++ and designed from the offset to act as a GUI (Graphical User Interface) front-end for GDB application, also known as the GNU debugger. It is tailored specifically for the KDE Plasma desktop environment.
The project offers an intuitive and interactive graphical user interface that can be used for inspecting variables, setting breakpoints, as well as to stepping through code. KDbg has been successfully used to debug any program.
Features at a glance
KDbg lets users to inspect variable values in a tree structure and features conditional breakpoints, debugging of core dumps, support for attaching to running processes, as well as basic debugger functions, such as run, step, until, next, set breakpoint, enable breakpoint, disable breakpoint, clear breakpoint, and finish, assigned to the F5 through F10 keys.
Numerous other basic functions are also included in the application, among which we can mention support for searching text, support for setting environment variables and program arguments, support for viewing source code, and support for displaying various expressions. Direct member is another interesting feature of KDbg.
Getting started with KDbg
You have to methods for installing the KDbg application on your GNU/Linux system. The easiest one is by opening your default graphical package manager, search for ‘kdbg’ and install the package from the main software repositories of your distribution.
The second method should be used only by advanced Linux users or in case the package cannot be found in the software repos of your operating system of choice. Download the latest version from Softpedia, save the archive on your PC, unpack it and open a terminal emulator.
In the Linux Terminal window, use the ‘cd’ command to go to the location of the extracted archive files (e.g. cd /home/softpedia/kdbg-2.5.4), execute the ‘cmake .’ command to configure the project, followed by the ‘make’ command to compile it.
Install the application system wide by running the ‘sudo make install’ command as a privileged user or the ‘make install’ command as root. At the moment, it has been successfully tested with both 32-bit and 64-bit computer architectures.