[Pythonmac-SIG] Mac User Python Newbies

Bob Ippolito bob at redivi.com
Fri Feb 11 21:26:36 CET 2005


On Feb 11, 2005, at 14:29, Bob Ippolito wrote:

>
> On Feb 11, 2005, at 12:51, Roger Binns wrote:
>
>>> I don't really understand how your are doing the development.  You 
>>> have to jump to a term window to run the script?
>>
>> I use xemacs as my editor.  The main functionality used is the syntax
>> colouring.  It also has a menu bar plugin (IM-Python) that lists the
>> classes and methods in the current file and lets you jump to them.
>>
>> And a seperate terminal window to run things in.  I use this same
>> setup on Windows, Linux and Mac.  For a debugger I just place this
>> wherever I need to have a deeper look at what is going on:
>>
>>  import pdb ; pdb.set_trace()
>
> Use this instead:
>
>   import pdb; pdb.Pdb().set_trace()
>
> It is more convenient in that you end up at the stack level you 
> actually want to be at, rather than inside py2app.

Er.. rather than inside pdb.. ugh.

-bob



More information about the Pythonmac-SIG mailing list