Debugging and Profiling
- Install LiClipse ( liclipse.com ) – no need to install Eclipse first
- Start debug server as described here: http://www.pydev.org/manual_adv_remote_debugger.html
- follow the “Note:” to enable the debug server menu item
- Create a file named
DEBUGnext to inkstitch.py in your inkstitch directory
- Run any extension and PyDev will start debugging.
Furthermore it will generate SVG files for debugging.
Create an empty file named
PROFILE next to inkstitch.py in your inkstitch directory. Ink/Stitch will then run under a profiler and dump the result to profile_stats. It will tell you what functions take how long to run.
Install snakeviz with
pip install snakeviz.
Open the statistics with
snakeviz profile_stats.prof. This will display a really useful interactive graph in your browser.