[Idle-dev] Definitions in a script for the IDLE shell
cben at users.sf.net
Sat Jan 28 20:36:39 CET 2012
On Fri, Jan 20, 2012 at 22:04, Dmitry Popov
<dmitry.popov at hpcat.aps.anl.gov>wrote:
> In other words the question is whether IDLE command Run Module (or F5) is
> equivalent to start of Python from command line using the following
> command: python –i filename.py?****
You can directly inspect variables / call functions defined in the module,
etc. And if there is an exception, you can:
>>> import pdb; pdb.pm()
to debug it "post mortem".
Note that every time you press F5, it kill the previous Python, and re-runs
the file in a new python, so you'll lose all state from the previous run.
(But the history and output is retained until you exit IDLE.)
Beni Cherniavsky-Paskin <cben at users.sf.net>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IDLE-dev