Skip to main content

LVGL GDB scripts

Project description

lvglgdb

GDB Python extension for inspecting and debugging LVGL internals. Works with live debugging sessions, core dumps, and other GDB-compatible targets.

Installation

pip install lvglgdb

Usage

In your GDB session:

py import lvglgdb

Dump Commands

dump obj                        # Dump widget tree
dump display -f png             # Dump display framebuffer as PNG
dump cache image                # Dump image cache entries
dump cache image_header         # Dump image header cache entries
check cache image               # Validate image cache integrity
dump anim                       # Dump active animations
dump timer                      # Dump registered timers
dump indev                      # Dump input devices
dump group                      # Dump focus groups
dump image_decoder              # Dump registered image decoders
dump fs_drv                     # Dump filesystem drivers
dump draw_task <layer_expr>     # Dump draw tasks for a layer
dump dashboard                  # Generate interactive HTML dashboard
dump dashboard -o out.html      # Save dashboard to file

Info Commands

info style my_style             # Inspect a single lv_style_t
info style --obj my_obj         # Inspect all styles of an lv_obj_t
info draw_unit                  # Show draw unit information
info obj_class obj->class_p     # Show object class hierarchy
info subject &my_subject        # Show subject and its observers

Dashboard

dump dashboard generates a self-contained HTML file with an interactive 3D layer view, widget tree, style inspector, cache stats, animation list, and draw buffer previews (RGB565 / RGB888 / ARGB8888 / XRGB8888).

Structure

graph TD
    lvgl["lvgl<br/>(mem → python objects)"]
    cmds["cmds<br/>(GDB commands)"]
    formatter["formatter<br/>(display logic)"]
    dashboard["cmds/dashboard<br/>(HTML renderer)"]

    cmds --> formatter
    cmds --> lvgl
    dashboard --> lvgl
    formatter --> lvgl

    classDef pkg fill:white,stroke:gray
    class lvgl,cmds,formatter,dashboard pkg

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lvglgdb-0.4.1.tar.gz (67.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lvglgdb-0.4.1-py3-none-any.whl (90.2 kB view details)

Uploaded Python 3

File details

Details for the file lvglgdb-0.4.1.tar.gz.

File metadata

  • Download URL: lvglgdb-0.4.1.tar.gz
  • Upload date:
  • Size: 67.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for lvglgdb-0.4.1.tar.gz
Algorithm Hash digest
SHA256 47d89413d51f608362f8b1b01635cd8b13f54f1cf3d43d64bc7bfeedf6a3712c
MD5 b46b9ed02bb24276760a6954a6a1c609
BLAKE2b-256 92e17737c0f56da577a401bef36da85c6ff8c009f9abfa9b5c3f0fa78fe14dfd

See more details on using hashes here.

File details

Details for the file lvglgdb-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: lvglgdb-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 90.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for lvglgdb-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 59e2d8a6ac645d5e98306ffc2dde52657a31f03de3decf31ff248f15a3a8d35a
MD5 36b2a7482be042743ad1a1cefca610f8
BLAKE2b-256 e24da96b3293e423e270de5b5b062f90c21a0409531dab720d44da4aa7c16a95

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page