Skip to main content

vardbg

A simple Python debugger and profiler that generates animated visualizations of program flow.

Python 3.6 or newer is required due to the use of f-strings.

Features

  • Tracking the history of each variable and its contents
  • Tracking elements within containers (lists, sets, dicts, etc.)
  • Profiling the execution of each line
  • Summarizing all variables and execution times after execution
  • Passing arguments to debugged programs
  • Exporting execution history in JSON format and replaying (including program output)
  • Creating videos that show program flow, execution times, variables, and output
  • Writing videos in MP4 and GIF formats

Installation

The latest tagged version can be obtained from PyPI:

pip install vardbg

Usage

All of the program's options are documented in the usage help:

$ vardbg --help
usage: vardbg [-h] [-f [FILE]] [-n [FUNCTION]] [-o [OUTPUT_FILE]] [-v [PATH]] [-c [CONFIG]]
              [-a [ARGS [ARGS ...]]] [-p] [-P]

A simple debugger that traces local variable changes, lines, and times.

optional arguments:
  -h, --help            show this help message and exit
  -f [FILE], --file [FILE]
                        Python file to debug, or JSON result file to read
  -n [FUNCTION], --function [FUNCTION]
                        function to run from the given file (if applicable)
  -o [OUTPUT_FILE], --output-file [OUTPUT_FILE]
                        path to write JSON output file to, default debug_results.json (will be truncated if it
                        already exists and created otherwise)
  -v [PATH], --video [PATH]
                        path to write a video representation of the program execution to (MP4 and GIF formats
                        are supported, depending on file extension)
  -c [CONFIG], --video-config [CONFIG]
                        path to the TOML config for the video output format, default video.toml
  -a [ARGS [ARGS ...]], --args [ARGS [ARGS ...]]
                        list of arguments to pass to the running program
  -p, --absolute-paths  use absolute paths instead of relative ones
  -P, --disable-live-profiler
                        disable live profiler output during execution

Download files

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

Source Distribution

vardbg-0.9.1.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

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

vardbg-0.9.1-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file vardbg-0.9.1.tar.gz.

File metadata

  • Download URL: vardbg-0.9.1.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.2 CPython/3.8.1 Linux/5.4.11-arch1-1

File hashes

Hashes for vardbg-0.9.1.tar.gz
Algorithm Hash digest
SHA256 4da49e823aebe0cd5cad5f408a4613d645e3604736d01daab1077db7abb697d1
MD5 03647c6f10815d716660480115fce8b0
BLAKE2b-256 0e2a198d1498dd358730c115d24e577e483fc89bb88b77be19ba72a4f1bd1ca7

See more details on using hashes here.

File details

Details for the file vardbg-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: vardbg-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 23.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.2 CPython/3.8.1 Linux/5.4.11-arch1-1

File hashes

Hashes for vardbg-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 979092618431346477aae864fbf338f68dcc6c7e8ec2921806712fb3aabb9b1a
MD5 05b635a14cfa9126828a9b222e2e2f0e
BLAKE2b-256 113a513c1eae3d65ad6d6196ef3f1297c386cccb70523eaad905769845790315

See more details on using hashes here.

Release history Release notifications | RSS feed

0.11.7

2 files

0.11.6

2 files

0.11.5

2 files

0.11.4

2 files

0.11.3

2 files

0.11.2

2 files

0.10.1

2 files

This release

0.9.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page