Search code examples
c++unixdebug-symbols

Getting debug symbols on UNIX



On windows we can get the debug symbols using the dbgHelp library.
How can we do it on UNIX/linux (with c++)?

thanks :)


Solution

  • This is dependent on exactly which Unix version or Linux distribution you are using. For Debian and Debian derived distributions such as Ubuntu you need to install the debug packages using your normal package manager. Fedora uses debuginfo rpms to add the debugging symbols. For other systems I'm afraid you'll have to search yourself.