The pyasmtools library is made up of two parts
- A python bytecode disassembler . See Python bytecode explained
- A tracer for python, that displays the source code of each executed line, along with the variables loaded and stored. See Execution traces in Python
All this is part of my tutorial on advanced python topics
Note that some of the goodness in this library is cpython specific, i don't expect it to work on every python based environment.
You can install this library with pip3 install pyasmtools
. Instructions are in the above mentioned links.