Skip to main content

Trade time for space when debugging your code.

Project description

Space Tracer

Trade Time for Space When You Debug

The Space Tracer displays what happens to your code so you can read through it like a book, instead of stepping through it like most debuggers. For example, here's a simple script that assigns a variable, then loops a few times making changes to that variable, before printing out the final message.

message = 'Hello, World'
for i in range(3):
    message += '!'
print(message)

A regular debugger would let you set break points, look at variable values, and step through the code. Space Tracer shows you the code with all of the variable assignments, and the loop iterations in columns. Here, you see the script on the left, and the variable values and loops on the right, so you can read through what happened, like reading a book.

message = 'Hello, World' | message = 'Hello, World' 
for i in range(3):       | i = 0                     | i = 1                      | i = 2 
    message += '!'       | message = 'Hello, World!' | message = 'Hello, World!!' | message = 'Hello, World!!!' 
print(message)           | print('Hello, World!!!') 

You can run Space Tracer as a command-line tool, or you can use it in the Live Coding in Python plugins for PyCharm, Emacs, and Sublime Text.

Installing Space Tracer

Use pip to install it:

$ pip install git+https://github.com/donkirkby/live-py-plugin

Then copy the script above into a file called hello.py, and run it with the space_tracer command:

$ space_tracer hello.py
message = 'Hello, World' | message = 'Hello, World' 
for i in range(3):       | i = 0                     | i = 1                      | i = 2 
    message += '!'       | message = 'Hello, World!' | message = 'Hello, World!!' | message = 'Hello, World!!!' 
print(message)           | print('Hello, World!!!') 
$

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

space_tracer-3.0b0.tar.gz (31.8 kB view details)

Uploaded Source

Built Distribution

space_tracer-3.0b0-py3-none-any.whl (31.2 kB view details)

Uploaded Python 3

File details

Details for the file space_tracer-3.0b0.tar.gz.

File metadata

  • Download URL: space_tracer-3.0b0.tar.gz
  • Upload date:
  • Size: 31.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for space_tracer-3.0b0.tar.gz
Algorithm Hash digest
SHA256 3a6e5bc57409a572598b1aa4d805fa7912d23088d9947caaf9314faef846d3f6
MD5 f8bc876636032b6233b6db8d45bf2e13
BLAKE2b-256 2dcf92eadde7093708a83a4f76df2e70d275242fd6504ce4739cc14126b8dc62

See more details on using hashes here.

File details

Details for the file space_tracer-3.0b0-py3-none-any.whl.

File metadata

  • Download URL: space_tracer-3.0b0-py3-none-any.whl
  • Upload date:
  • Size: 31.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for space_tracer-3.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 ddcf927691a8894020fb2cce9e12cc11776ed68c9ad61677d33de9c6fac3c783
MD5 5dcee2fb5a23bee35d2aafdf7b159e7c
BLAKE2b-256 c2d4821f4b9dda4f5c324fb83008d2c2c5349f6c1c5d2ee4624eb87f8af03610

See more details on using hashes here.

Supported by

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