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

2021-06-07 Thread Mats Wichmann
On 6/2/21 7:24 PM, pjfarl...@earthlink.net wrote: -Original Message- From: Grant Edwards Sent: Monday, May 31, 2021 11:18 AM To: python-list@python.org Subject: Re: How to debug python + curses? [was: RE: Applying winpdb_reborn] On 2021-05-31, Dennis Lee Bieber wrote: On Mon, 31

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

2021-06-06 Thread inhahe
On Sun, May 30, 2021 at 1:43 PM 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. > > Does anyone here know if winpdb-reborn or any other debugger can

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

2021-06-06 Thread Fabio Zadrozny
You could try other debuggers (possibly doing a remote debug session or attach to pid). Eclipse-PyDev: https://www.pydev.org/manual_adv_remote_debugger.html VsCode-python: https://code.visualstudio.com/docs/python/debugging PyCharm: https://www.jetbrains.com/help/pycharm/remote-debugging-with-prod

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

2021-06-02 Thread Cameron Simpson
On 02Jun2021 21:24, pjfarl...@earthlink.net wrote: >> -Original Message- >> From: Grant Edwards >> Perhaps Windows isn't an appropriate OS under which to develop curses >> applicatoins? > >Perhaps, but why isn't it? I don't think it isn't. (Um, so many negatives in that sentence - I mean

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

2021-06-02 Thread Grant Edwards
On 2021-06-03, wrote: >> -Original Message- >> From: Grant Edwards >> Sent: Monday, May 31, 2021 11:18 AM >> To: python-list@python.org >> Subject: Re: How to debug python + curses? [was: RE: Applying > winpdb_reborn] >> >> On 2021-05-31,

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

2021-06-02 Thread pjfarley3
> -Original Message- > From: boB Stepp > Sent: Wednesday, June 2, 2021 12:21 AM > To: python-list@python.org > Subject: Re: How to debug python + curses? [was: RE: Applying winpdb_reborn] > windows-curses 2.2.0 has been working well for me so far on Win10: > htt

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

2021-06-02 Thread pjfarley3
> -Original Message- > From: Jach Feng > Sent: Tuesday, June 1, 2021 9:19 PM > To: python-list@python.org > Subject: Re: How to debug python + curses? [was: RE: Applying winpdb_reborn] > > pjfa...@earthlink.net 在 2021年5月31日 星期一上午1:42:43 [UTC+8] 的信中寫 > 道: > &

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

2021-06-02 Thread pjfarley3
> -Original Message- > From: Cameron Simpson > Sent: Tuesday, June 1, 2021 7:32 PM > To: python-list@python.org > Subject: Re: How to debug python + curses? [was: RE: Applying winpdb_reborn] > > On 01Jun2021 19:48, Alan Gauld wrote: > >On 31/05/2021 16:16, G

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

2021-06-02 Thread pjfarley3
> -Original Message- > From: jak > Sent: Tuesday, June 1, 2021 3:34 AM > To: python-list@python.org > Subject: Re: How to debug python + curses? [was: RE: Applying winpdb_reborn] > > Il 31/05/2021 02:36, Dennis Lee Bieber ha scritto: > > On Mon, 31 May 2

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

2021-06-02 Thread pjfarley3
> -Original Message- > From: Grant Edwards > Sent: Monday, May 31, 2021 11:17 AM > To: python-list@python.org > Subject: Re: How to debug python + curses? [was: RE: Applying winpdb_reborn] > > On 2021-05-30, Alan Gauld via Python-list wrote: > >

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

2021-06-02 Thread pjfarley3
> -Original Message- > From: Dennis Lee Bieber > Sent: Monday, May 31, 2021 7:11 PM > To: python-list@python.org > Subject: Re: How to debug python + curses? [was: RE: Applying winpdb_reborn] > > On Tue, 1 Jun 2021 08:04:54 +1000, Cameron Simpson > declaimed

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

2021-06-02 Thread pjfarley3
> -Original Message- > From: Grant Edwards > Sent: Monday, May 31, 2021 11:18 AM > To: python-list@python.org > Subject: Re: How to debug python + curses? [was: RE: Applying winpdb_reborn] > > On 2021-05-31, Dennis Lee Bieber wrote: > > On Mon, 31 May 2

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

2021-06-01 Thread boB Stepp
On Tue, Jun 1, 2021 at 12:20 PM Dennis Lee Bieber wrote: > > On Tue, 1 Jun 2021 08:04:54 +1000, Cameron Simpson > declaimed the following: > > >On 30May2021 20:36, Dennis Lee Bieber wrote: > >>On Mon, 31 May 2021 08:07:21 +1000, Cameron Simpson > >>declaimed the following: > >>>Open another ter

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

2021-06-01 Thread Jach Feng
pjfa...@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

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

2021-06-01 Thread Cameron Simpson
On 01Jun2021 19:48, Alan Gauld wrote: >On 31/05/2021 16:16, Grant Edwards wrote: >> On 2021-05-30, Alan Gauld via Python-list 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

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

2021-06-01 Thread Alan Gauld via Python-list
On 31/05/2021 16:16, Grant Edwards wrote: > On 2021-05-30, Alan Gauld via Python-list 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 o

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

2021-06-01 Thread jak
Il 31/05/2021 02:36, Dennis Lee Bieber ha scritto: On Mon, 31 May 2021 08:07:21 +1000, Cameron Simpson declaimed the following: Open another terminal, note its terminal device with the "tty" command. Start your programme like this: python .. 2>/dev/tty-of-the-other-termina

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

2021-06-01 Thread Grant Edwards
On 2021-05-31, Dennis Lee Bieber wrote: > On Mon, 31 May 2021 08:07:21 +1000, Cameron Simpson > declaimed the following: > > >>Open another terminal, note its terminal device with the "tty" command. >>Start your programme like this: >> >>python .. 2>/dev/tty-of-the-other-termina > >

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

2021-06-01 Thread Grant Edwards
On 2021-05-30, Alan Gauld via Python-list 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. > >

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

2021-06-01 Thread pjfarley3
> -Original Message- > From: Alan Gauld > Sent: Sunday, May 30, 2021 4:38 PM > To: python-list@python.org > Subject: Re: How to debug python + curses? [was: RE: Applying winpdb_reborn] > > On 30/05/2021 18:26, pjfarl...@earthlink.net wrote: > > I tried winpdb

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

2021-05-31 Thread pjfarley3
> -Original Message- > From: Cameron Simpson > Sent: Sunday, May 30, 2021 6:07 PM > To: Python > Subject: Re: How to debug python + curses? [was: RE: Applying winpdb_reborn] > > On 31May2021 07:46, Chris Angelico wrote: > Also untried, but should work: &g

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

2021-05-31 Thread pjfarley3
> -Original Message- > From: Dennis Lee Bieber > Sent: Sunday, May 30, 2021 4:32 PM > To: python-list@python.org > Subject: Re: How to debug python + curses? [was: RE: Applying winpdb_reborn] > > On Sun, 30 May 2021 13:26:40 -0400, declaimed the > following: &g

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

2021-05-31 Thread pjfarley3
> -Original Message- > From: Chris Angelico > Sent: Sunday, May 30, 2021 5:47 PM > To: Python > Subject: Re: How to debug python + curses? [was: RE: Applying winpdb_reborn] > > Never had this problem with curses per se (partly because I've used it very >

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

2021-05-31 Thread Cameron Simpson
On 30May2021 20:36, Dennis Lee Bieber wrote: >On Mon, 31 May 2021 08:07:21 +1000, Cameron Simpson >declaimed the following: >>Open another terminal, note its terminal device with the "tty" >>command. >>Start your programme like this: >>python .. 2>/dev/tty-of-the-other-termina >> >

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

2021-05-30 Thread Cameron Simpson
On 31May2021 07:46, Chris Angelico wrote: >On Mon, May 31, 2021 at 7:03 AM Alan Gauld via Python-list > wrote: >> You are not alone. debugging curses is one of the biggest obstacles >> to its use. [...] > >Never had this problem with curses per se (partly because I've used it >very little), but a

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

2021-05-30 Thread Chris Angelico
On Mon, May 31, 2021 at 7:03 AM Alan Gauld via Python-list 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

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

2021-05-30 Thread Alan Gauld via Python-list
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

Re: Applying winpdb_reborn

2021-05-30 Thread Alan Gauld via Python-list
On 30/05/2021 00:03, Cameron Simpson wrote: > I'd imagine debugging is much like it is in C. Wait for the breakpoint > to trip, then inspect the programme variables. That's a pretty crude form of debugging (although much better than just single stepping from the beginning!). Adding conditional

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

2021-05-30 Thread pjfarley3
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 tha

Re: Applying winpdb_reborn

2021-05-30 Thread Peter Otten
On 29/05/2021 01:12, Cameron Simpson wrote: On 28May2021 14:49, Rich Shepard wrote: On Fri, 28 May 2021, Dennis Lee Bieber wrote: It's apparently looking for some environment variable based upon the code at https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwjfpYm

(OT) Re: Applying winpdb_reborn

2021-05-29 Thread Greg Ewing
On 30/05/21 1:46 pm, dn wrote: We always referred to it as an "oh-two-nine" ("029"). I had the privilege of helping to dismantle a couple of those when they were decommissioned at the University of Canterbury. Amazing pieces of technology -- purely electromechanical, no electronics in sight. E

Re: Applying winpdb_reborn

2021-05-29 Thread dn via Python-list
On 30/05/2021 11.52, Rich Shepard wrote: > On Sun, 30 May 2021, Chris Angelico wrote: > Please excuse my long-winded description of a FORTRAN IV bug in an lake > ecosystem energy model I wrote at the University of Illinois in the early > 1970s. It is an example of what you wrote above. > > The pr

Re: Applying winpdb_reborn

2021-05-29 Thread Chris Angelico
On Sun, May 30, 2021 at 9:53 AM Rich Shepard wrote: > > On Sun, 30 May 2021, Chris Angelico wrote: > > > (Plus, there's not always an opportunity to use a debug harness. Sometimes > > you just have to put your prints into production and let it run for two > > weeks in the hope that the bug will sh

Re: Applying winpdb_reborn

2021-05-29 Thread Rich Shepard
On Sun, 30 May 2021, Chris Angelico wrote: (Plus, there's not always an opportunity to use a debug harness. Sometimes you just have to put your prints into production and let it run for two weeks in the hope that the bug will show itself.) ChrisA, Please excuse my long-winded description of a

Re: Applying winpdb_reborn

2021-05-29 Thread Rich Shepard
On Sun, 30 May 2021, Cameron Simpson wrote: Also, searching for "pdb tutorial" seems to find a bunch of links. Cameron, That's true. All the ones I've read list the various pdb commands. Knowing the commands is different from knowing when and how to apply them. I'll work back to remembering

Re: Applying winpdb_reborn

2021-05-29 Thread Alan Gauld via Python-list
On 29/05/2021 19:10, Dennis Lee Bieber wrote: > On Sat, 29 May 2021 09:51:04 -0700 (PDT), Rich Shepard > declaimed the following: >> What I find interesting is that every web page I find on 'using pdb' does no >> more than explain the available commands; they don't explain the debugging >> proces

Re: Applying winpdb_reborn

2021-05-29 Thread Chris Angelico
On Sun, May 30, 2021 at 9:19 AM Cameron Simpson wrote: > > On 29May2021 09:51, Rich Shepard wrote: > >I knew the debugging process with Fortran and C, but haven't learned how to > >effectively use pdb to find bugs that don't issue a traceback or obvious > >wrong answer such as my module displayin

Re: Applying winpdb_reborn

2021-05-29 Thread Cameron Simpson
On 30May2021 09:03, Cameron Simpson wrote: >>I knew the debugging process with Fortran and C, but haven't learned >>how to effectively use pdb to find bugs that don't issue a traceback or >>obvious >>wrong answer such as my module displaying an empty window with no >>widgets. Also, searching fo

Re: Applying winpdb_reborn

2021-05-29 Thread Cameron Simpson
On 29May2021 09:51, Rich Shepard wrote: >I've removed winpdb here as recommended by Philippe Fremy. I don't use >IDEs other than emacs so I'll stick with pdb. > >What I find interesting is that every web page I find on 'using pdb' does no >more than explain the available commands; they don't expl

Re: Applying winpdb_reborn

2021-05-29 Thread Rich Shepard
On Sat, 29 May 2021, Dennis Lee Bieber wrote: Except the copy of winpdb source I looked at has RPDBTERM = 'RPDBTERM' near the top. Then again, I don't know how up-to-date the OP's copy is -- I just Googled for a repository with the module. Let me check a Linux environ

Re: Applying winpdb_reborn

2021-05-28 Thread Cameron Simpson
On 28May2021 14:49, Rich Shepard wrote: >On Fri, 28 May 2021, Dennis Lee Bieber wrote: >> It's apparently looking for some environment variable based upon the >>code at >>https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwjfpYmk3-zwAhULI6wKHSPjAFIQFnoECAUQAA&url=http%3A

Re: Applying winpdb_reborn

2021-05-28 Thread Cameron Simpson
On 28May2021 08:34, Rich Shepard wrote: >I'm trying to debug a module of a PyQt5 application using winpdb_reborn. >When I invoke the debugger with the module's name I get an empty winpdb >window and the console tells me that it cannot find RPDBTERM. The full >traceback is attached. [...] >Tracebac

Re: Applying winpdb_reborn

2021-05-28 Thread Rich Shepard
On Fri, 28 May 2021, Dennis Lee Bieber wrote: It's apparently looking for some environment variable based upon the code at https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwjfpYmk3-zwAhULI6wKHSPjAFIQFnoECAUQAA&url=http%3A%2F%2Fphault.rhul.ac.uk%2Fpy%2F_spe%2Fplugi

Re: Applying winpdb_reborn

2021-05-28 Thread Rich Shepard
On Fri, 28 May 2021, MRAB wrote: Have you looked at the package's repository? MRAB, It looks like this is the one: https://github.com/bluebird75/winpdb That's where I got it. Thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

RE: Applying winpdb_reborn

2021-05-28 Thread Rich Shepard
On Fri, 28 May 2021, Schachner, Joseph wrote: I have no familiarity with this issue, but I think one thing to check is whether all capitalized RPDBTERM is truly the name you are looking for, remember that Python is case sensitive. Joseph, According to the only doc I could find, "RPDB2 startup

Re: Applying winpdb_reborn

2021-05-28 Thread MRAB
On 2021-05-28 16:34, Rich Shepard wrote: I'm trying to debug a module of a PyQt5 application using winpdb_reborn. When I invoke the debugger with the module's name I get an empty winpdb window and the console tells me that it cannot find RPDBTERM. The full traceback is attached. Here, rpdb2 is a