pytrace is a fast Python tracer that records function calls, arguments and return values.
traces aid debugging, profiling and obviate logging.
pytrace has been tested on python 2.7 and python 3.2. (should support 2.6 and up)
pytrace has been tested on os x and several linux distributions.
Follow @alonhorev on twitter for updates.
Install
pytrace depends on sqlite and a C implementation of protocol buffers.
on debian/ubuntu: sudo apt-get install libsqlite3-dev libprotobuf-c0-dev
on fedora: sudo yum install libsqlite3x-devel protobuf-c-devel
on mac (sqlite is included): brew install protobuf-c or port install protobuf-c
install pytrace:
pip install pytrace
Usage
Invoke pytrace with your script:
pytrace foo.py --bar
Invoke the reader from the same directory by executing pytrace with no arguments:
pytrace
The reader can be invoked while the script is running. providing 'online' debugging capabilities.
Requirements:
- Python
Comments not found