As far as i know there's no way to debug python inside IDA.
There are, however, a few python tools you could use to debug your own code.
but it will essentially require you to develop your own python IDE/debugger utilities around the built-in python debugging tools.
I'm listing the possible methods by order of complexity (simplest first):
Compiling and running your own python code from python
The more basic approach is using the python compile
built-in function to compile python code into bytecode, executing that with eval
or exec
(also built-in functions). compile
returns an AST
(Abstract Syntax Tree) object you can further manipulate/investigate.
Using The python debugger (from python)
If you want more advanced debugging abilities, python has it's own built-in python debugger module called pdb
. You only need to tell pdb
what python code to execute, and it'll spawn a debugger interface similar to gdb
, the command line debugger lets you set conditional breakpoints, manipulate and analyze python code, and use most of the usual debugging tools.
Using the python debugging framework
the python debugger is built on top of python's bdb
(basic debugger), it is a class implementing debugging functionality and can be used from within IDA's python command line. If you're going to use the bdb
you'll have to create your own tools and UI around these utilities.
Edit:
I saw WingIDE only now. since OP didn't specify what exactly is the issue using WingIDE, I hope at least one of the methods will be relevant.