[wxPython] wxPython debugging with Komodo

I’ve been unable to debug wxPython code in Komodo. If I attempt to start my app from the debugger, the application fails to appear. The application doesn’t exit; it just goes into app.MainLoop and stays in there, but the window doesn’t appear.

I am able to put a breakpoint in MyApp.OnInit, and the breakpoint is hit, but when I “Go”, my application doesn’t become visible.

When I run the application outside of Komodo, it works fine. Here’s the source:

hello.py

from wxPython.wx import *

class MyApp(wxApp):
def OnInit(self):
frame = wxFrame(NULL, -1, “Hello from wxPython”)
frame.Show(true)
self.SetTopWindow(frame)
return true

app = MyApp(0)
app.MainLoop()

Komodo 1.1.2 build 23917

Python 2.1, wxPython 2.2, Windoze (Mediocrity Edition)

  • Ken Seehof

Ken,

We are aware of this bug and are looking into it. In the mean time, you
can work around the issue by selecting "Debug in separate console" in the
Debugging Options dialog.

You can monitor our progress on the issue here:

Regards,

···

On Wed, 10 Oct 2001, Ken Seehof wrote:

I've been unable to debug wxPython code in Komodo. If I attempt to
start my app from the debugger, the application fails to appear.
The application doesn't exit; it just goes into app.MainLoop and
stays in there, but the window doesn't appear.

I am able to put a breakpoint in MyApp.OnInit, and the breakpoint is
hit, but when I "Go", my application doesn't become visible.

--
Aaron Bingham, Komodo Developer, ActiveState

New! ASPN - ActiveState Programmer Network
Essential programming tools and information

maybe this will help you

some Python tools do an import of the module an dont’t want to start the program at once (like the ddd-Debugger)

if name==‘main’:
app = MyApp(0)
app.MainLoop()

···

----- Original Message -----

From:
Ken Seehof

To: wxpython-users@lists.wxwindows.org
; komodo-discuss@listserv.ActiveState.com

Sent: Wednesday, October 10, 2001 8:58 PM

Subject: [wxPython] wxPython debugging with Komodo

I’ve been unable to debug wxPython code in Komodo. If I attempt to start my app from the debugger, the application fails to appear. The application doesn’t exit; it just goes into app.MainLoop and stays in there, but the window doesn’t appear.

I am able to put a breakpoint in MyApp.OnInit, and the breakpoint is hit, but when I “Go”, my application doesn’t become visible.

When I run the application outside of Komodo, it works fine. Here’s the source:

hello.py

from wxPython.wx import *

class MyApp(wxApp):
def OnInit(self):
frame = wxFrame(NULL, -1, “Hello from wxPython”)
frame.Show(true)
self.SetTopWindow(frame)
return true

app = MyApp(0)
app.MainLoop()

Komodo 1.1.2 build 23917

Python 2.1, wxPython 2.2, Windoze (Mediocrity Edition)

  • Ken Seehof

Apparently, debug in separate console is disabled on Win9x.

    Any workarounds for debugging wxPython in Komodo on Win98?
    
    Y.

···

On Wednesday, October 10, 2001 at 2:01:30 PM, Aaron Bingham wrote:

On Wed, 10 Oct 2001, Ken Seehof wrote:

I've been unable to debug wxPython code in Komodo. If I attempt to
start my app from the debugger, the application fails to appear.
The application doesn't exit; it just goes into app.MainLoop and
stays in there, but the window doesn't appear.

I am able to put a breakpoint in MyApp.OnInit, and the breakpoint is
hit, but when I "Go", my application doesn't become visible.

Ken,

We are aware of this bug and are looking into it. In the mean time, you
can work around the issue by selecting "Debug in separate console" in the
Debugging Options dialog.

You can monitor our progress on the issue here:
ActiveState Support for Enterprise and Developers