I use Wing IDE- like Mike mentioned, but WinPDB is free and quite
powerful.
In a pinch, you could wrap pdb in an the event handler which gets
called when the window closes, then step trhough until the crash
occurs.
You can look at globals & locals just before the crash.
···
On Jan 31, 9:23 am, Rashad <rasha...@gmail.com> wrote:
any debugger for debugging python programs using wxpython.
I am getting an error message
pure virtual method called
terminate called without an active exception
Aborted
when i simply close the main window frame just after opening
How to debug my code?
Which debugger to use?
Any help will be greatly appreciated.
Thanks in advance
Those error messages are coming from the C++ code, so a Python debugger probably won't be as much help as you would think, although it can probably help track down the last known location in the Python code before the error happens.
To debug further than that you'll need to use the gdb debugger (or a wrapper that provides a UI) so you can trace through the C++ code. HOwever, if the wxPython you're using was not built with debugging symbols included then it won't be much use. Check to see if your distro has debugging versions of wxGTK and wxPython available and install those if so. For example, on Ubuntu you can install python-dbg, python-wxgtk2.8-dbg, etc. and then run your app with python-dbg.
If you are getting a core dump then you can also try loading the core file into gdb and doing a backtrace command to show the stack at the time of the crash. That may give some clues as to the source of the problem, but without debugging symbols then this may also not be very helpful.
···
On 1/31/10 9:23 AM, Rashad wrote:
any debugger for debugging python programs using wxpython.
I am getting an error message
pure virtual method called
terminate called without an active exception
Aborted
when i simply close the main window frame just after opening