main logo
Subject: Re: [dabo-users] Developing and debugging dabo applications
Author: Ed Leafe
Posted: 2006/06/30 08:01:02
 
View Entire Thread
New Search


On Jun 30, 2006, at 7:44 AM, Simen Haugen wrote:

> It's a real pain in the ass to debug without a debugger. What IDE and
> debuggers to you use with dabo (and python development in general)?

I used Winpdb a while back, and while I never ran into the problems
with locals that you seem to have, I just found it way to slow to
start up, and the fact that you can't put a breakpoint in your code
makes it almost useless to me, since that means I have no simple way
of skipping over the stuff that I'm not working on.

Like Paul, I use lots of print statements in my code and read the
output in the terminal window to find out where things are not
working as expected. When I need to step through code, I can just add
'dabo.trace()' to invoke the pdb debugger.

With the exception of the tricks used to get .cdxml code to execute
as instance methods of the objects, there is nothing that is not
straight wxPython in any of our UI code, and nothing that is not
plain vanilla Python in the rest. There is no outside magic
happening; it's just Python.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com





 
©2006 Ed Leafe
<-- Prior Message New Search Next Message -->