mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-11-30 02:46:52 +08:00
* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
3 lines
718 B
Markdown
3 lines
718 B
Markdown
# Debugging Symbols
|
|
|
|
Debugging symbols are essential for effective debugging in C++. They provide debuggers with information about the program's structure, source code relationships, and variable representations, allowing developers to step through code, inspect variables, and understand the program's behavior. These symbols can be embedded directly within the compiled binary (internal) or stored in separate files (external), such as `.pdb` on Windows or `.dSYM` on macOS. Tools like `g++` offer flags like `-g` (for internal symbols) and `-gsplit-dwarf` (for external symbols) to generate these symbols during compilation, while the `strip` command can be used to remove internal symbols from production binaries. |