A small library to ease the visualization of recursion
inspect
module
- Import 'RecViz' and create an object in recursive function -
x= RecViz.EnableLogging(inspect.currentframe())
- If you want to log the return values as well, instead of returning a value direct use -
return x.LogAndReturn(value)
(See visualizer.py for example)
This generates an output file named "RecViz.log" which has the information in XML format.
Add GUI to RecViz.log for visualization.