debugger

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

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

How to debug my code?
Which debugger to use?

Any help will be greatly appreciated.
Thanks in advance

What operating system? Version of python and wxpython?

There are various debuggers out there. I use Wing’s built-in one, but the major free ones include

pdb - http://docs.python.org/library/pdb.html

winpdb - http://winpdb.org/
a whole list of 'em - http://wiki.python.org/moin/PythonDebuggers

···

On Sun, Jan 31, 2010 at 11:23 AM, Rashad rashadkm@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


Mike Driscoll

Blog: http://blog.pythonlibrary.org

don't you just love c++?

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

I use Boa which has a debugger built in.

Werner

···

On 31/01/2010 18:23, 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

How to debug my code?
Which debugger to use?

Any help will be greatly appreciated.
Thanks in advance

my os is GNU/Linux (Debian lenny) wxpython 2.8

···

On Mon, Feb 1, 2010 at 1:02 AM, Steven Sproat sproaty@gmail.com wrote:

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

How to debug my code?

Which debugger to use?

Any help will be greatly appreciated.

Thanks in advance

What operating system? Version of python and wxpython?

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en


Regards,
Mohammed Rashad K.M

http://keralainfo.web4all.in/
+919496620801

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.

will u please eloborate?

···

You can look at globals & locals just before the crash.

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

How to debug my code?
Which debugger to use?

--
Robin Dunn
Software Craftsman