On 2021-05-30, Alan Gauld via Python-list <python-list@python.org> wrote: > On 30/05/2021 18:26, pjfarl...@earthlink.net wrote: >> 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. > > 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++. Or I add debugging printf calls which write to stderr and redirect stderr to a file. > My approach is to define a status line at the bottom of my program and > write print statements into that window. Something like: Why not just use the standard python logging facility and log to a file or another terminal window? -- Grant -- https://mail.python.org/mailman/listinfo/python-list