Table of contents:

Configuring debug symbols

These days many debugging tools can fetch debug symbols from debuginfod servers. The official project page lists the URLs you should use for each supported distribution. For example, in my Arch Linux, the DEBUGINFOD_URLS environment variable is set to https://debuginfod.archlinux.org by the /etc/profile.d/debuginfod.sh script (a part of the libelf package).

If you want this variable to be preserved when running commands with sudo, you can add a rule such as the following to a file in /etc/sudoers.d/ (e.g., /etc/sudoers.d/debuginfod):

Defaults env_keep += "DEBUGINFOD_URLS"