Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Maybe Computer Science should be in the College of Theology. -- R. S. Barton


devel / comp.lang.python / Re: Applying winpdb_reborn

SubjectAuthor
o Re: Applying winpdb_rebornCameron Simpson

1
Re: Applying winpdb_reborn

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: cs...@cskk.id.au (Cameron Simpson)
Newsgroups: comp.lang.python
Subject: Re: Applying winpdb_reborn
Date: Sun, 30 May 2021 09:03:18 +1000
Lines: 30
Message-ID: <mailman.411.1622330281.3087.python-list@python.org>
References: <alpine.LNX.2.20.2105290945570.25842@salmo.appl-ecosys.com>
<YLLINtUcjvqf4rdN@cskk.homeip.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.uni-berlin.de xBoqj2mwwnCw3AGyNAoSognyfXVJ4P457hQNp5ytjTeQ==
Return-Path: <cameron@cskk.id.au>
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.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '3.7': 0.03; 'traceback':
0.04; 'debugging': 0.07; ':-)': 0.09; 'emacs': 0.09; 'processor':
0.09; 'widgets': 0.09; 'writer.': 0.09; 'cheers,': 0.10;
'breakpoint': 0.16; 'bugs': 0.16; 'builtin': 0.16; 'cameron':
0.16; 'debugger': 0.16; 'drops': 0.16; 'from:addr:cs': 0.16;
'from:addr:cskk.id.au': 0.16; 'from:name:cameron simpson': 0.16;
'inspect': 0.16; 'invoke': 0.16; 'menus': 0.16; 'message-
id:@cskk.homeip.net': 0.16; 'received:10.10': 0.16; 'shepard':
0.16; 'simpson': 0.16; 'stick': 0.16; 'wrote:': 0.16; 'python':
0.16; 'instead': 0.17; 'calls': 0.20; 'way.': 0.20; 'issue': 0.20;
"i've": 0.22; 'progress': 0.23; 'teach': 0.23; "i'd": 0.23;
'to:addr:python-list': 0.23; 'code': 0.24; 'function': 0.28;
"i'll": 0.28; 'module': 0.28; 'header:User-Agent:1': 0.31; 'but':
0.31; 'explain': 0.31; 'fact': 0.31; 'empty': 0.32; 'window':
0.32; 'using': 0.33; 'header:In-Reply-To:1': 0.33; "that's": 0.37;
'special': 0.37; 'word': 0.38; 'use': 0.38; 'does': 0.38;
'someone': 0.39; 'list': 0.39; 'example': 0.40; 'here': 0.62;
'showing': 0.63; 'header:Received:6': 0.63; 'named': 0.63;
'received:userid': 0.64; 'your': 0.64; 'above': 0.65; 'obvious':
0.69; 'piece': 0.69; 'interesting': 0.71; 'easy': 0.75;
'received:172.16': 0.77; 'subject:skip:w 10': 0.77; 'trip,': 0.91
X-RG-Spam: Unknown
X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgeduledrvdeltddgudeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuuffpveftpgfvgffnuffvtfetpdfqfgfvnecuuegrihhlohhuthemucegtddtnecunecujfgurhepfffhvffukfggtggujggffhesthdtredttdervdenucfhrhhomhepvegrmhgvrhhonhcuufhimhhpshhonhcuoegtshestghskhhkrdhiugdrrghuqeenucggtffrrghtthgvrhhnpeelveefgefhgefgheduvdfghefhffejgedvueeihfegleegkeefffeigfdutdevheenucfkphepuddruddvledrudektddrudejieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopehsohgvkhhrihhsrdifrghukhdrtghskhhkrdhhohhmvghiphdrnhgvthdpihhnvghtpedurdduvdelrddukedtrddujeeipdhmrghilhhfrhhomhepoegtrghmvghrohhnsegtshhkkhdrihgurdgruheqpdhrtghpthhtohepoehphihthhhonhdqlhhishhtsehphihthhhonhdrohhrgheq
X-RazorGate-Vade-Verdict: clean 0
X-RazorGate-Vade-Classification: clean
X-RG-VS-CLASS: clean
X-Authentication-Info: Submitted using ID cskk@bigpond.com
Mail-Followup-To: python-list@python.org
Content-Disposition: inline
In-Reply-To: <alpine.LNX.2.20.2105290945570.25842@salmo.appl-ecosys.com>
User-Agent: Mutt/2.0.3 (2020-12-04)
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: <YLLINtUcjvqf4rdN@cskk.homeip.net>
X-Mailman-Original-References: <alpine.LNX.2.20.2105290945570.25842@salmo.appl-ecosys.com>
 by: Cameron Simpson - Sat, 29 May 2021 23:03 UTC

On 29May2021 09:51, Rich Shepard <rshepard@appl-ecosys.com> 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 explain the debugging
>process. That's like showing someone what the word processor menus do; it
>doesn't teach the user how to be a writer.
>
>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.

I've only just started with pdb. As of Python 3.7 there's a builtin
function named breakpoint() which drops you into the debugger. I've
never been a big debugger person, historicly using print() and
equivalent. However, this makes it very easy to insert this call into a
piece of code instead of having to invoke one's pogramme in a special
way.

I'd imagine debugging is much like it is in C. Wait for the breakpoint
to trip, then inspect the programme variables.

In your example above I'd blithely imagine checking that the list of
widgets I expected were in fact constructed, etc. But I'd also be
littering my window setup with progress print calls :-)

Cheers,
Cameron Simpson <cs@cskk.id.au>

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor