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
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
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
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.