[IPython-user] logging a Pdb session

Tony Cappellini cappy2112@gmail....
Thu Aug 7 14:14:26 CDT 2008

Screen is awesome, but can get confusing when first using it.

If screen is not installed, then see if the script command is.

type script, press enter/return

Everything that  is typed in or displayed will go to a file called
typescript in the current directory.

If you start script with a different filename as in

script mypdblog

everything will be written to mypdblog.

Ctrl-D or exit to stop script from executing (logging)

Message: 2
Date: Wed, 6 Aug 2008 12:16:36 -0700
From: "Fernando Perez" <fperez.net@gmail.com>
Subject: Re: [IPython-user] logging a Pdb session
To: "Ryan Krauss" <ryanlists@gmail.com>
Cc: ipython-user@scipy.org
Content-Type: text/plain; charset=ISO-8859-1

On Wed, Aug 6, 2008 at 9:32 AM, Ryan Krauss <ryanlists@gmail.com> wrote:
> I am about to explore someone else's code using Pdb.  It will probably
> be a fairly lengthy exploration and I would like to dump the session
> to a file when I am done.  Is there an easy way to do this other than
> copying and pasting from the bash shell?

I'm afraid not in ipython proper, but I think screen has some logging
abilities.  Have you tried that?


More information about the IPython-user mailing list