Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

What is now proved was once only imagin'd. -- William Blake


devel / comp.lang.python / Re: How to debug python + curses? [was: RE: Applying winpdb_reborn]

SubjectAuthor
o Re: How to debug python + curses? [was: RE: Applying winpdb_reborn]Dennis Lee Bieber

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

<mailman.435.1622407655.3087.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13453&group=comp.lang.python#13453

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: wlfr...@ix.netcom.com (Dennis Lee Bieber)
Newsgroups: comp.lang.python
Subject: Re: How to debug python + curses? [was: RE: Applying winpdb_reborn]
Date: Sun, 30 May 2021 15:07:08 -0400
Organization: IISS Elusive Unicorn
Lines: 54
Message-ID: <mailman.435.1622407655.3087.python-list@python.org>
References: <000001d75578$f4ced0b0$de6c7210$@earthlink.net>
<b9o7bgdq6kerioneuatgppripb3t5hmq33@4ax.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de KU2Wis1Ydgdw0M9zWOPqAQ00e39ETmGjgZAi0XIMCuIA==
Return-Path: <python-python-list@m.gmane-mx.org>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '(which': 0.04; 'gui':
0.05; 'subject:python': 0.06; 'command-line': 0.07; 'debugging':
0.07; 'sun,': 0.07; '"""': 0.09; 'console,': 0.09;
'received:ciao.gmane.io': 0.09; 'received:gmane.io': 0.09;
'received:list': 0.09; 'terminal': 0.09; 'arguments': 0.16;
'debugger': 0.16; 'execution:': 0.16; 'message-id:@4ax.com': 0.16;
'received:116.202': 0.16; 'received:116.202.254': 0.16;
'received:116.202.254.214': 0.16; 'subject:debug': 0.16; 'url-
ip:169/8': 0.16; 'windows.': 0.16; 'python': 0.16; 'code.': 0.19;
'uses': 0.19; 'modify': 0.20; 'subject:How': 0.22; 'machine':
0.22; 'anyone': 0.23; 'to:addr:python-list': 0.23; 'module': 0.28;
'output': 0.28; 'input': 0.29; 'header:User-Agent:1': 0.31;
'header:Organization:1': 0.31; 'takes': 0.31; 'script': 0.32;
'opening': 0.32; 'window': 0.32; 'using': 0.33; 'url:edu': 0.34;
'same': 0.34; 'appears': 0.35; 'windows': 0.36; 'handle': 0.37;
'necessary': 0.40; 'skip:w 10': 0.61; 'here': 0.62; 'your': 0.64;
'above': 0.65; 'well': 0.66; 'site': 0.69; 'received:116': 0.71;
'subject:]': 0.71; 'subject:skip:w 10': 0.77; 'up,': 0.77; '2021':
0.84; 'url-ip:76/8': 0.84; 'and...': 0.91; 'pop': 0.91
X-Injected-Via-Gmane: http://gmane.org/
User-Agent: ForteAgent/8.00.32.1272
X-No-Archive: YES
X-Mailman-Approved-At: Sun, 30 May 2021 16:47:34 -0400
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <b9o7bgdq6kerioneuatgppripb3t5hmq33@4ax.com>
X-Mailman-Original-References: <000001d75578$f4ced0b0$de6c7210$@earthlink.net>
 by: Dennis Lee Bieber - Sun, 30 May 2021 19:07 UTC

On Sun, 30 May 2021 13:26:40 -0400, <pjfarley3@earthlink.net> declaimed the
following:

>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.
>

From http://heather.cs.ucdavis.edu/~matloff/winpdb.html
"""
About Winpdb and RPDB2:

The Winpdb package, by Nir Aides, is an excellent Python debugger. It is
especially nice because it can handle the debugging of threads- and
curses-based code. It is a remote debugger, meaning that it connects
through the network to a remote site (which can be the same machine at
which it is invoked, which is typical).

RPDB2 is text-based, while Winpdb is a GUI front end to RPDB2.
"""

and...

http://heather.cs.ucdavis.edu/~matloff/winpdb.html#userpdb2
"""
Using RPDB2:

RPDB2 startup:

Say you have a script x.py to debug, with command-line arguments arg0,
arg1 etc. Then to start RPDB2, type

python rpdb2.py x.py arg0 arg1 ...

Of course, modify the above to point to the location of rpdb2.py.
RPDB2 execution:
A separate terminal window will pop up, for your program's keyboard
input and screen output.
"""

Note the last line... Don't know how well that may work on Windows
(rather than the debugger opening its own console, it appears to create a
console for the debugged application).

--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor