GDB
Last updated
What is GDB?
GDB (GNU Debugger) is a command-line debugger that lets a programmer run a C program under its control, set breakpoints to pause execution at specific lines, inspect and modify variable values, and step through code one line or instruction at a time. It works with binaries compiled with debugging information, typically added using the -g compiler flag. GDB is the standard debugger on most Linux systems and supports many other languages beyond C.
Free resources to learn GDB
- Official docsGDB Docs
- ArticleDebugging C code With GDB
- VideoGDB is REALLY easy! Find Bugs in Your Code with Only A Few Commands
More in stage 18: Debugging
GDB: common questions
Can I learn GDB in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain GDB in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this GDB tutorial for beginners?
It is lesson 96 of 141 in the free C Programming roadmap, in stage 18, Debugging. If you are new to C Programming, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.