How do you find out what's happening in a process?

Ulrich Eckhardt ulrich.eckhardt at dominolaser.com
Mon Nov 29 10:40:43 EST 2010


Leo Jay wrote:
> I'd like to know how do you guys find out what's happening in your
> code if the process seems not work.
> In java, I will use jstack <pid> to check stacks of threads and lock
> status. But I don't know how to do it in python.

import pdb
pdb.set_trace()

Generally, searching "python debugger howto" should turn up a few useful
results. ;)

Uli

-- 
Domino Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932




More information about the Python-list mailing list