Produce function trace for Python code in Xdebug format
Project description
This module prints function trace to stdout from the moment it is called:
import xtrace xtrace.start() ... xtrace.stop()
It is also possible to call xtrace as module from the command line:
python -m xtrace <script.py> [param] ...
or use as a standalone script:
python xtrace.py <script.py> [param] ...
The output format is that of Xdebug http://xdebug.org/docs/execution_trace But frankly, I didn’t have time to polish it to be exactly the same. If you will find the time and desire to polish it - feel free to send a patch.
This code is released into public domain. Hope you’ll find it useful.
History
0.2 - added version info, support running from command line, moved main functions into a class to isolate used variables in local namespace
0.1 - initial release
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
File details
Details for the file xtrace-0.2.tar.gz
.
File metadata
- Download URL: xtrace-0.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2807d69404a196df8ff48ab8fcfa872f32252f120f353edf149b14589ff8e539 |
|
MD5 | a8e7935a57eb69832c8e1b8142aab0e3 |
|
BLAKE2b-256 | d3a58e191735a0e0a78ba3cb00b93a9ea44d057882f7c82120c7a2dc9fb6bdaa |