Q: Interactive input

Jan Kybic Jan.Kybic at epfl.ch
Tue Oct 24 10:03:09 EDT 2000


Hi,
	would there be a simple way to stop the execution of a script,
read commands from the keyboard and  execute them in the current
frame? Something like keyboard() in Matlab. I know you can do it using
the debugger, but this still requires a lot of typing: import pdb,
pdb.run('adsdas') , b , c , ...

I would just like to put 'keyboard()' somewhere in my script, be able
to examine and change the values of some variables, perhaps call some
functions, and continue.

Any other hints how to debug python programs?

Many thanks.

	     Jan


-- 
-------------------------------------------------------------------------
Jan Kybic <Jan.Kybic at epfl.ch>      BIG IOA DMT EPFL Lausanne, Switzerland
       or <kybic at ieee.org>         tel. work +41 (21) 693 5142
For PGP key see my WWW page.       http://bigwww.epfl.ch/kybic



More information about the Python-list mailing list