Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 367 Bytes

index.md

File metadata and controls

22 lines (14 loc) · 367 Bytes

git debug

Help debugging builtins

Git alias:

debug = !GIT_PAGER= gdb --args git

Example:

git debug

When debugging builtins, we like to use gdb to analyze the runtime state.

However, we have to disable the pager, and often we have to call the program with arguments.

If the program to debug is a builtin, then we use this alias.