1.4. Installing tools for debugging applications
To analyze and troubleshoot internal application behavior, {ProductName} offers multiple debugging and instrumentation tools.
Prerequisites
- The debug and source repositories is enabled.
Procedure
Install the tools for debugging:
# dnf install gdb valgrind systemtap ltrace straceInstall the
dnf-utilspackage to use thedebuginfo-installtool:# dnf install dnf-utilsRun a SystemTap helper script to prepare the environment:
# stap-prepNote that
stap-prepinstalls packages relevant to the currently running kernel, which might not be the same as the installed kernel. To ensurestap-prepinstalls the correctkernel-debuginfoandkernel-headerspackages, double-check the current kernel version by using theuname -rcommand and reboot your system if necessary.Make sure
SELinuxpolicies allow the relevant applications to run not only normally, but in the debugging situations, too. For more information, see Using SELinux.
Additional resources