https://github.com/hchasestevens/tracing
Utilities for tracing program execution line-by-line
https://github.com/hchasestevens/tracing
debugging-tool ipython
Last synced: 8 months 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 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-04T14:33:42.000Z (almost 8 years ago)
- Last Synced: 2025-03-23T21:22:41.739Z (9 months ago)
- Topics: debugging-tool, ipython
- Language: Python
- Homepage:
- Size: 38.1 KB
- Stars: 33
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tracing
[](https://badge.fury.io/py/tracing)
[](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 tracing
In [1]: %trace enable
```
## Contacts
* Name: [H. Chase Stevens](http://www.chasestevens.com)
* Twitter: [@hchasestevens](https://twitter.com/hchasestevens)