Chapter 4. Setting up to Debug Applications
Red Hat Enterprise Linux offers multiple debugging and instrumentation tools to analyze and troubleshoot internal application behavior.
-
Select the
Debugging ToolsandDesktop Debugging and Performance ToolsAdd-ons during system installation to install the GNU Debugger (GDB), Valgrind, SystemTap, ltrace, strace, and other tools. For the latest versions of GDB, Valgrind, SystemTap, strace, and ltrace, install Red Hat Developer Toolset. This installs memstomp, too.
# yum install devtoolset-7
The memstomp utility is available only as a part of Red Hat Developer Toolset. In case installing the whole Developer Toolset is not desirable and memstomp is required, install only its component from Red Hat Developer Toolset.
# yum install devtoolset-7-memstomp
Install the yum-utils package in order to use the debuginfo-install tool:
# yum install yum-utils
-
To debug applications and libraries available as part of Red Hat Enterprise Linux, install their respective debuginfo and source packages from the Red Hat Enterprise Linux repositories using the
debuginfo-installtool. This applies to core dump file analysis, too. - Install kernel debuginfo and source packages required by the SystemTap application. See SystemTap Beginners Guide, section Installing SystemTap.
- To capture kernel dumps, install and configure kdump. Follow the instructions in Kernel Crash Dump Guide, Chapter Installing and Configuring kdump.
-
Make sure
SELinuxpolicies allow the relevant applications to run not only normally, but in the debugging situations, too. See SELinux User’s and Administrator’s Guide, section Fixing Problems.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.