From Fedora Project Wiki

Line 5: Line 5:
 
== Configuration ==
 
== Configuration ==
  
On Fedora 32 or later, set one environment variables in your `.profile`.
+
On Fedora 32 or later, set an environment variable.
  
 
<pre>
 
<pre>

Revision as of 14:46, 20 May 2021

DEBUGINFOD server

This server provides ELF or DWARF debugging information, plus associated source code, covering all packages and architectures of recent versions of Fedora. It works by periodically indexing all relevant RPMs from Koji, and extracting any needed file on the fly. Debugger-type tools automatically request files one by one. After being downloaded, each file is stored in a cache under your home directory, where the tools can immediately use it.

Configuration

On Fedora 32 or later, set an environment variable.

% export DEBUGINFOD_URLS=https://debuginfod.fedoraproject.org/

On Fedora 35 (rawhide) or later, this environment variable is automatically set via /etc/profile.d/debuginfod.* files.

If you operate your own debuginfod server for local projects, add its URL to $DEBUGINFOD_URLS (space-separated). If you'd like to see progress diagnostics during downloads, set:

% export DEBUGINFOD_PROGRESS=1

Then, enjoy using gdb, stap, perf, eu-stack, and many other debugging-related tools without the interruption of % sudo yum debuginfo-install XYZZY.

Disabling

If you wish to completely opt out of this service, simply set $DEBUGINFOD_URLS to an empty string.

Security FAQ

(tbd)

See Also

For more information see elfutils status page and Changes/DebuginfodByDefault.