[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

Terry Reedy? 2019?8?23???? UTC+8??7?27?50????
> 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

IDLE is the closest one to the command console I currently use. The mouse used in its shell really helps on my requirement:-) Thank you for reminding.