How To Install kdbg on Ubuntu 18.04
Introduction
In this tutorial we learn how to install kdbg
on Ubuntu 18.04.
What is kdbg
kdbg is:
KDbg is a graphical user interface to gdb, the GNU debugger. It provides an intuitive interface for setting breakpoints, inspecting variables, stepping through code and much more. KDbg requires KDE but you can of course debug any program.
Features include the following:
- Inspection of variable values in a tree structure.
- Direct member: For certain compound data types the most important member values are displayed next to the variable name, so that it is not necessary to expand the subtree of that variable in order to see the member value. KDbg can also display Qt’s QString values, which are Unicode strings.
- Debugger at your finger tips: The basic debugger functions (step, next, run, finish, until, set/clear/enable/disable breakpoint) are bound to function keys F5 through F10. Quick and easy.
- View source code, search text, set program arguments and environment variables, display arbitrary expressions.
- Debugging of core dumps, attaching to running processes is possible.
- Conditional breakpoints.
There are three methods to install kdbg
on Ubuntu 18.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install kdbg Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install kdbg
using apt-get
by running the following command:
sudo apt-get -y install kdbg
Install kdbg Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install kdbg
using apt
by running the following command:
sudo apt -y install kdbg
Install kdbg Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install kdbg
using aptitude
by running the following command:
sudo aptitude -y install kdbg
How To Uninstall kdbg on Ubuntu 18.04
To uninstall only the kdbg
package we can use the following command:
sudo apt-get remove kdbg
Uninstall kdbg And Its Dependencies
To uninstall kdbg
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove kdbg
Remove kdbg Configurations and Data
To remove kdbg
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge kdbg
Remove kdbg configuration, data, and all of its dependencies
We can use the following command to remove kdbg
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge kdbg
References
Summary
In this tutorial we learn how to install kdbg
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.