Skip to content

hchasestevens/tracing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tracing

PyPI version Liberapay receiving

Utilities for tracing program execution line-by-line.

What is this good for?

Have you ever been in a situation where you weren't quite sure what a program was doing? Where the program seems to hang, or seems to spend too long between two stages, or is behaving in a way you don't expect it to? tracing lets you see in real-time exactly what is being run, without some of the overhead of using a debugger - like having to set breakpoints or manually advance the program's execution.

Installation

pip install tracing

Usage

Within code:

from tracing import tracing
with tracing():
  ...  # each line executed will be printed to stdout

Within an IPython shell:

In [0]: import tracing

In [1]: %trace enable

Contacts

About

Utilities for tracing program execution line-by-line

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages