Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hchasestevens/tracing
Utilities for tracing program execution line-by-line
https://github.com/hchasestevens/tracing
debugging-tool ipython
Last synced: 24 days ago
JSON representation
Utilities for tracing program execution line-by-line
- Host: GitHub
- URL: https://github.com/hchasestevens/tracing
- Owner: hchasestevens
- License: mit
- Created: 2017-11-02T23:01:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-04T14:33:42.000Z (over 6 years ago)
- Last Synced: 2024-09-28T18:40:55.954Z (about 1 month ago)
- Topics: debugging-tool, ipython
- Language: Python
- Homepage:
- Size: 38.1 KB
- Stars: 32
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tracing
[![PyPI version](https://badge.fury.io/py/tracing.svg)](https://badge.fury.io/py/tracing)
[![Liberapay receiving](https://img.shields.io/liberapay/receives/hchasestevens.svg)](https://liberapay.com/hchasestevens/)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:
```python
from tracing import tracing
with tracing():
... # each line executed will be printed to stdout
```Within an IPython shell:
```python
In [0]: import tracingIn [1]: %trace enable
```## Contacts
* Name: [H. Chase Stevens](http://www.chasestevens.com)
* Twitter: [@hchasestevens](https://twitter.com/hchasestevens)