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

pjfarley3 at earthlink.net pjfarley3 at earthlink.net
Tue Jun 1 00:55:39 EDT 2021


> -----Original Message-----
> From: Cameron Simpson <cs at cskk.id.au>
> Sent: Sunday, May 30, 2021 6:07 PM
> To: Python <python-list at python.org>
> Subject: Re: How to debug python + curses? [was: RE: Applying
winpdb_reborn]
> 
> On 31May2021 07:46, Chris Angelico <rosuav at 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
--



More information about the Python-list mailing list