stop program and start interactive interpreter

Jp Calderone exarkun at intarweb.us
Sat Oct 11 15:14:30 EDT 2003


On Sat, Oct 11, 2003 at 02:28:00PM -0400, Dave Reed wrote:
> 
> I seem to remeber reading somewhere there was a statement you could
> put in your python program to stop its execution and start the
> interactive interpreter at that point (and then you could change the
> value of some variables and continue executing). Am I having delusions
> or is there a way to do this?
> 

  One way, perhaps not the one you are thinking of, is:

    import pdb; pdb.Pdb().set_trace()

  Jp





More information about the Python-list mailing list