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

pjfarley3 at earthlink.net pjfarley3 at earthlink.net
Wed Jun 2 21:42:11 EDT 2021


> -----Original Message-----
> From: Jach Feng <jfong at ms4.hinet.net>
> Sent: Tuesday, June 1, 2021 9:19 PM
> To: python-list at python.org
> Subject: Re: How to debug python + curses? [was: RE: Applying winpdb_reborn]
> 
> pjfa... at earthlink.net 在 2021年5月31日 星期一上午1:42:43 [UTC+8] 的信中寫
> 道:
> > I tried winpdb-reborn some time last year on my Win10 system (python
> > 3.8.3 at that time), but could not figure out how to use it to debug a
> > python script that uses the curses module.
> >
> > Does anyone here know if winpdb-reborn or any other debugger can
> > support 2-window debugging for a python script that uses the curses
> > module? It seems to me that a 2-window debugging session is necessary
> > for a python script that uses the curses module because using curses
> > takes over the screen from which the script is started, so debugging
> > output and script output need to be in separate windows.
> >
> > I've been forced to use a logger to trace critical values and program
> > flow for errors in such a script. It works, but it is annoyingly slow
> > to debug that way.
> >
> > TIA for any advice or RTFM you can provide.
> >
> > Peter
> > --
> I have no problem on using rpdb2 to debug a script which is based on curses.
> 
> My environment are:
> Windows Vista, Python 3.4.4, rpdb2 of winpdb-1.4.8, curses-2.2-cp34-cp34m-
> win32.whl, snake.py
> 
> Everything are old, but it works:-)

Indeed, I can believe that.  My problem is that my system has much more recent versions that I do need to use.

I may, as I said previously, try winpdb_reborn again and see how it works with fresh eyes and some accumulated experience.

Peter
--



More information about the Python-list mailing list