On Fri, 10 Feb 2006, Heikki Toivonen wrote:
If you ware wondering why, well, all mail code (including SSL) runs in
background that can't be debugged without these tricks, and it is likely
It sure can. Use pdb or 'print'. Neither are IDE-based debuggers, but saying
you cannot debug threads is not true. 'print' sure isn't the most comfortable
debugger available but 'pdb' isn't that bad. No fancy mouse-driven GUI but
everything else is available from your keyboard at the 'pdb' python prompt.
The simplest way to debug something with pdb, if you know where to put the
breakpoint, is to add one line of code near it: 'import pdb; pdb.set_trace()'
and a command line debugger, like gdb, appears when the breakpoint is reached.
PDB is documented by the python docs:
http://python.org/doc/current/lib/module-pdb.html
It very much has the same commands as the C/C++ command line debugger gdb.
As a matter of fact, you can even combine both, stepping from python into
C/C++ and back, if you needed to, by using pdb and gdb together.
Andi..
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Open Source Applications Foundation "Dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/dev