[Python-mode] pdbtrack

Barry Warsaw barry at python.org
Fri May 1 22:54:51 CEST 2009

On May 1, 2009, at 4:50 PM, Andreas Roehler wrote:

> Hhm. Could you give me an example, how you run script activating  
> pdbtrace, reaching
> the standard (pdb) prompt from Emacs?

I almost always just add the following line to the source code at the  
point I want to start debugging:

     import pdb; pdb.set_trace()

Then I fire up my application from the shell.  When that line gets it,  
Python breaks and pdbtrack starts up.  It's worked pretty much that  
way for me since forever.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 304 bytes
Desc: This is a digitally signed message part
URL: <http://mail.python.org/pipermail/python-mode/attachments/20090501/f3d6ba72/attachment.pgp>

More information about the Python-mode mailing list