gitmyhub

gdb-dashboard

Python ★ 12k updated 7mo ago

Modular visual interface for GDB in Python

A single config file that gives GDB a persistent visual dashboard, showing source code, variables, call stack, and registers automatically each time your program pauses, so you stop typing inspection commands.

PythonGDBsetup: easycomplexity 1/5

GDB is a widely used command-line debugger for programs written in C, C++, and other compiled languages. When debugging, developers typically pause a running program at certain points and then type individual commands to inspect variable values, the call stack, memory contents, and other details about what the program is doing. This back-and-forth can be slow when many pieces of information need to be checked at the same time. GDB dashboard addresses this by adding a persistent visual display that shows relevant information automatically each time execution pauses, so the developer can stay focused on the program's control flow rather than on typing inspection commands.

The project is a single configuration file, called .gdbinit, written in Python using GDB's own Python extension interface. Installation consists of copying that file to your home directory. GDB loads it automatically at startup, and from that point the dashboard appears every time your program stops. No existing GDB commands are changed or replaced.

The interface is described as modular, meaning different panels of information can be shown or hidden to suit your workflow. All dashboard controls are accessible through a single dashboard command added by the tool. Optionally, installing Pygments, a Python syntax-highlighting library, adds color to the output, making code and data easier to read at a glance.

The README is short and links to the project's wiki for further instructions on common tasks and customization options. The individual display panels and all available configuration settings are documented there rather than in the main README.

Where it fits