How to debug python + curses? [was: RE: Applying winpdb_reborn]
Jach Feng
jfong at ms4.hinet.net
Tue Jun 1 21:19:06 EDT 2021
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:-)
--Jach
More information about the Python-list
mailing list