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

pjfarley3 at earthlink.net pjfarley3 at earthlink.net
Wed Jun 2 21:37:55 EDT 2021


> -----Original Message-----
> From: Cameron Simpson <cs at cskk.id.au>
> Sent: Tuesday, June 1, 2021 7:32 PM
> To: python-list at python.org
> Subject: Re: How to debug python + curses? [was: RE: Applying
winpdb_reborn]
> 
> On 01Jun2021 19:48, Alan Gauld <alan.gauld at yahoo.co.uk> wrote:
> >On 31/05/2021 16:16, Grant Edwards wrote:
> >> On 2021-05-30, Alan Gauld via Python-list <python-list at python.org>
wrote:
> >>> You are not alone. debugging curses is one of the biggest obstacles
> >>> to its use.
> >>
> >> Can't you just run the debugger in a different window and attach to
> >> the process you want to debug? That's how one uses a debugger with
> >> curses apps written in C/C++.
> >
> >That's how we did it when I used curses on VMS/Unix using C.
> 
> That's ok for C-level things - they're close to the metal. But this is
Python, so
> such tools may well be poorly adapted.
> 
> >But I confess I didn't think you could attach any python debugger to
> >another python session?
> 
> Dennis Lee Bieber wrote earlier in this thread:
<Snipped> 
> So it sounds like someone's done the hard work here. I can imagine it
embeds a
> Python proxy in the app which can be remote controlled from the debugger
> client, but I'm just guessing wildly.

If winpdb_reborn worked, that would be true.  The original thread did also
discuss how often it did not work.

Peter



More information about the Python-list mailing list