Use Wing IDE to debug Maya Python Script
2013-04-11
The first thing I would like to point out is that for Wing IDE 101, there is no remote debugger/passive listen feature. This only applies in the case of Wing IDE Personal or higher licenses.
- copy the wingdbstub.py (originally in the installation of wing IDE) to the folder which contains your maya script After that, you should be able to reach breakpoints by causing the scripts to be invoked from Maya.
- set kEmbedded=1 in the new wingdbstub.py
- click on the bug icon in lower left of Wing's window and make sure that Passive Listen is enabled
- use the debugger API to ensure the debugger is connected to the IDE before any other code executes as follows:
import wingdbstub
wingdbstub.Ensure()</p>