> -----Original Message----- > From: Cameron Simpson <c...@cskk.id.au> > Sent: Sunday, May 30, 2021 6:07 PM > To: Python <python-list@python.org> > Subject: Re: How to debug python + curses? [was: RE: Applying winpdb_reborn] > > On 31May2021 07:46, Chris Angelico <ros...@gmail.com> wrote: <Snipped> > Also untried, but should work: > > Open another terminal, note its terminal device with the "tty" command. > Start your programme like this: > > python ...... 2>/dev/tty-of-the-other-termina > > Send debug statements to sys.stderr. They should show in the other window. > > I'd also think one could do some kind of shuffle setting up curses to attach its > display to another terminal, letting you use an interactive debugging in the > invoking terminal. Haven't tried this yet.
Thanks Cameron, but that could only work from an *ix console. Not so easy from a Windows console. Peter -- -- https://mail.python.org/mailman/listinfo/python-list