How to record the console's content in the interpreter?

Terry Reedy tjreedy at udel.edu
Fri Aug 23 07:27:27 EDT 2019


On 8/23/2019 3:42 AM, jfong at ms4.hinet.net wrote:

>>>>> Say I like to record everything showing in the console into a file
>>>>> after I start a debug session, and stop it when finished. It's not
>>>>> a console redirection. I still need to see what is going on during
>>>>> the session.

> After a quick try on IPython 6.5.0, I saw only the commands I had typed, not include the output of those commands:-(

IDLE saves exactly what you see in the window, including with a shell 
session.  One can also select and paste into a new editor window and 
then save.



-- 
Terry Jan Reedy




More information about the Python-list mailing list