A. Klingenstein schrieb:
I embedded Python in a Windows C++ program. Now I want to debug my
embedded scripts which of course won't run in any IDE process.
Commercial IDEs like WingIDE can attach to external processes by
importing a module in the scripts. Is there a debugger capable of this
which is Free or Open Source?
What I need are the following things:
- runs in Windows
- single stepping
- variable watches
- breakpoints
Does your Windows C++ program have a working stdin/stdout/stderr,
i.e. kind of a console? Then you could insert
import pdb
pdb.set_trace()
at a position in your embedded scripts where you want debugging to
start. If your C++ program doesn't have a console then perhaps you
can provide one with a Win32 call? Just guessing here.
--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.decode('base64')
-------------------------------------------------------------------
--
http://mail.python.org/mailman/listinfo/python-list