Re: using breakpoints in a normal interactive session

2006-02-23 Thread dan . gass
Carl -- Perfect! That is exactly what I want. I hoped it would be that easy. Thanks for taking the time to post the solution. -- http://mail.python.org/mailman/listinfo/python-list

Re: using breakpoints in a normal interactive session

2006-02-23 Thread R. Bernstein
In revising pydb the code and documentation for the routine originally described, I learn that the pdb equivalent (sort of) is called set_trace(). However set_trace() will terminate the program when you quit the debugger, so I've retained this routine and made a couple of corrections -- in particu

Re: using breakpoints in a normal interactive session

2006-02-23 Thread Carl Friedrich Bolz
[EMAIL PROTECTED] wrote: > Is there a way to temporarily halt execution of a script (without using > a debugger) and have it put you in an interactive session where you > have access to the locals? And possibly resume? For example: > > def a(): > > ... x = 1 > ... magic_breakpoint() >

Re: using breakpoints in a normal interactive session

2006-02-22 Thread R. Bernstein
[EMAIL PROTECTED] writes: > Is there a way to temporarily halt execution of a script (without using > a debugger) and have it put you in an interactive session where you > have access to the locals? Here's what I was able to do using the Extended Python debugger. http://bashdb.sourceforge.net/p