pdb question - spew out "steps" until crash needed

Paul Rubin http
Sat Sep 8 07:57:41 CEST 2007


James Stroud <jstroud at mbi.ucla.edu> writes:
> How do I get pdb to just run my program and spew out what's happening
> until it crashes/freezes? (This is a malloc error in a library
> somewhere and I can't figure out where--no exceptions thrown, etc.)

Maybe you want: http://docs.python.org/lib/module-trace.html

However, the malloc problem has probably already screwed things up
long before the application actually freezes.  Your best bet is
to recompile Python with malloc debugging enabled and/or run Python
itself under a debugger.



More information about the Python-list mailing list