Re: Debugging a Python Program that Hangs
- From: "Stef Mientki" <stef.mientki@xxxxxxxxx>
- Date: Wed, 3 Dec 2008 16:52:31 +0100
check winpdb / rpdb2,
cheers,
Stef
On 12/3/08, alex23 <wuwei23@xxxxxxxxx> wrote:
On Dec 3, 2:19 am, Kevin D. Smith <Kevin.Sm...@xxxxxxx> wrote:.
I have a fairly large python program that, when a certain combination
of options is used, hangs. I have no idea where it is hanging, so
simply putting in print statements to locate the spot would be quite
difficult. Unfortunately, ctrl-C'ing the program doesn't print a
traceback either. Looking through the python debugger documentation, I
don't see how to run a python program and interactively stopping it
while it is running. Is there a way to stop within a running python
program to see where it is getting hung up?
Hey Kevin, long time fan of your films! (I bet you get that a lot...)
The trace module might help you identify where it's getting caught up:
http://www.python.org/doc/2.5.2/lib/trace-cli.html
--
http://mail.python.org/mailman/listinfo/python-list
- References:
- Debugging a Python Program that Hangs
- From: Kevin D . Smith
- Re: Debugging a Python Program that Hangs
- From: alex23
- Debugging a Python Program that Hangs
- Prev by Date: Re: Multiple equates
- Next by Date: Re: Reverse zip() ?
- Previous by thread: Re: Debugging a Python Program that Hangs
- Next by thread: Re: Debugging a Python Program that Hangs
- Index(es):
Relevant Pages
|