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

  1. Install the tools for debugging:

    # dnf install gdb valgrind systemtap ltrace strace
  2. Install the dnf-utils package to use the debuginfo-install tool:

    # dnf install dnf-utils
  3. Run a SystemTap helper script to prepare the environment:

    # stap-prep

    Note that stap-prep installs packages relevant to the currently running kernel, which might not be the same as the installed kernel. To ensure stap-prep installs the correct kernel-debuginfo and kernel-headers packages, double-check the current kernel version by using the uname -r command and reboot your system if necessary.

    Make sure SELinux policies allow the relevant applications to run not only normally, but in the debugging situations, too. For more information, see Using SELinux.

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部