Debug and step through addon? I've installed the DirectX export addon (found here). I'm exporting an object with armature animation but it's not working how I expect it to and the documentation isn't helpful (See this question).

Since the addon is just a Python script, is there a way to set a breakpoint in the code and step through the exporter script like a debugger? I've looked a this similar question but running the Blender interactive Python console, I can't set my export options for the exporter, so it fails when I try to run the 'export' command.

I'm hoping there's something like the following:


Open Blender normally (by double-clicking the Blender shortcut on my desktop)
Enable some sort of Python debugging mode
Open the file I'd like to export.
Click File > Export > DirectX
Choose my export options and filename
Click Export DirectX
Blender brings me into a code window showing the exporter script and it's paused on the first line, waiting for me to step through the code.
You can do this with Free &amp; Open Source software, using Eclipse and PyDev. 


Download &amp; install Eclipse from https://eclipse.org/downloads/
Follow PyDev installation manual http://www.pydev.org/manual_101_install.html
Install my remote debugging add-on from Github
Configure it in the addon preferences for /home/sybren/.p2/pool/plugins/org.python.pydev_5.3.0.201610121612/pysrc/pydevd.py (adjust for your system)
Start a debug server in PyDev
Press Space in the 3D view and search for "pydev", then choose the operator to connect to the PyDev debugger.


You can see me explaining the steps in my Blender Conference 2016 talk Develop add-ons like a pro.