How to debug python + curses? [was: RE: Applying winpdb_reborn]

pjfarley3 at earthlink.net pjfarley3 at earthlink.net
Wed Jun 2 21:34:35 EDT 2021


> -----Original Message-----
> From: jak <nospam at please.ty>
> Sent: Tuesday, June 1, 2021 3:34 AM
> To: python-list at python.org
> Subject: Re: How to debug python + curses? [was: RE: Applying
winpdb_reborn]
> 
> Il 31/05/2021 02:36, Dennis Lee Bieber ha scritto:
> > On Mon, 31 May 2021 08:07:21 +1000, Cameron Simpson <cs at cskk.id.au>
> > declaimed the following:
> >
> >
> >> Open another terminal, note its terminal device with the "tty" command.
> >> Start your programme like this:
> >>
> >>     python ...... 2>/dev/tty-of-the-other-termina
> >>
> >
> > 	The OP specified Win10, so the above is dead from the start.
> >
> >
> 
> OP can try this way on win10: write the debug information in a log file
and, from
> another console, open the same log file with an editor that knows how to
check
> the active status of the file (eg: notepad++), which can automatically
update the
> changes (you can remove the notification for this action from the tab
> preferences).

For this kind of debugging (write a log and review it later) a live view of
what is happening in the log isn't always that helpful.

Peter



More information about the Python-list mailing list