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

Tomasz Rola rtomek at ceti.pl
Fri Aug 23 13:23:15 EDT 2019


On Thu, Aug 22, 2019 at 07:38:54PM -0700, 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.
> 

You may be looking for Eshell, but to be sure you have to try, I have
no idea how well this works in Windows. After running your stuff in
it, all session is present in Emacs' buffer (if I undestand it
correctly) and you can do with a buffer however you please (within
limitations of Emacs, which are broad), including save to file:

    Eshell is a shell-like command interpreter implemented in Emacs
    Lisp. It invokes no external processes except for those requested
    by the user. It is intended to be an alternative to the IELM (see
    Emacs Lisp Interaction) REPL for Emacs and with an interface
    similar to command shells such as bash, zsh, rc, or 4dos.

[

https://www.gnu.org/software/emacs/manual/html_mono/eshell.html

]

-- 
Regards,
Tomasz Rola

--
** A C programmer asked whether computer had Buddha's nature.      **
** As the answer, master did "rm -rif" on the programmer's home    **
** directory. And then the C programmer became enlightened...      **
**                                                                 **
** Tomasz Rola          mailto:tomasz_rola at bigfoot.com             **



More information about the Python-list mailing list