Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #86147

Re: Accessible tools

Path csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python.list@tim.thechases.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'syntax': 0.04; 'context': 0.07; 'debugging': 0.07; 'linux,': 0.07; 'mostly': 0.14; 'windows': 0.15; '"n"': 0.16; '"s"': 0.16; '*always*': 0.16; '-tkc': 0.16; 'breakpoints': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'hits': 0.16; 'jacob': 0.16; 'pdb;': 0.16; 'received:174.136': 0.16; 'ssh': 0.16; 'task.': 0.16; 'followed': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'seems': 0.21; 'command': 0.22; 'code,': 0.22; 'import': 0.22; 'print': 0.22; 'helpful': 0.24; "haven't": 0.24; "i've": 0.25; 'source': 0.25; 'least': 0.26; 'gets': 0.27; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'point': 0.28; 'generally': 0.29; "doesn't": 0.30; 'code': 0.31; 'that.': 0.31; 'inspect': 0.31; 'interface': 0.32; 'run': 0.32; 'url:python': 0.33; 'there,': 0.34; "can't": 0.35; 'editor': 0.35; 'but': 0.35; 'add': 0.35; 'really': 0.36; 'wishes,': 0.36; 'next': 0.36; 'charset:us-ascii': 0.36; "i'll": 0.36; 'url:org': 0.36; 'detail': 0.37; 'list': 0.37; 'received:10': 0.37; 'step': 0.37; 'follows:': 0.38; 'url:library': 0.38; 'to:addr:python-list': 0.38; 'heard': 0.39; 'to:addr:python.org': 0.39; 'enough': 0.39; 'tell': 0.60; 'url:3': 0.61; 'offer': 0.62; 'making': 0.63; 'such': 0.63; 'more': 0.64; 'spot': 0.65; 'assistance': 0.66; 'hints': 0.68; 'prompt': 0.68; 'around,': 0.84; 'drops': 0.91; 'relating': 0.93
X-Sender-Id wwwh|x-authuser|tim@thechases.com
X-Sender-Id wwwh|x-authuser|tim@thechases.com
X-MC-Relay Neutral
X-MailChannels-SenderId wwwh|x-authuser|tim@thechases.com
X-MailChannels-Auth-Id wwwh
X-MC-Loop-Signature 1424632370744:3464504654
X-MC-Ingress-Time 1424632370743
Date Sun, 22 Feb 2015 13:14:24 -0600
From Tim Chase <python.list@tim.thechases.com>
To "Jacob Kruger" <jacob@blindza.co.za>, <python-list@python.org>
Subject Re: Accessible tools
In-Reply-To <D3C58D9CD8CA4079AE0FEDE2097F0689@JakesPC>
References <479CFB67BB2640C09ADB16742A547172@JakesPC> <00DB5382-A26A-4157-898E-854C6C14CDF0@gmail.com> <20150221122918.7e4e39eb@bigbox.christie.dr> <D3C58D9CD8CA4079AE0FEDE2097F0689@JakesPC>
X-Mailer Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-AuthUser tim@thechases.com
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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 <http://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>
Newsgroups comp.lang.python
Message-ID <mailman.19022.1424632963.18130.python-list@python.org> (permalink)
Lines 48
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1424632963 news.xs4all.nl 2934 [2001:888:2000:d::a6]:41539
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:86147

Show key headers only | View raw


On 2015-02-22 20:29, Jacob Kruger wrote:
> jaws, doesn't always cooperate perfectly with command line/console
> interface

I've heard that on multiple occasions.  Since I mostly work with
Linux, the only terminal-with-screen-reader hints I've heard involve
using TeraTerm as the SSH client with NVDA on Windows.  Sorry I can't
be of much more assistance there, since I haven't really used Windows
for years.

> this page seems to offer enough detail relating to PDB, to start
> off with anyway: https://docs.python.org/3/library/pdb.html

My generally process is as follows:

1) add the following line some place before where I want to debug:

   import pdb; pdb.set_trace()

2) run my program

3) when it hits that line of code, it drops you to the debugging
prompt

4) poke around, using "print" followed by the thing(s) I want to
inspect such as

  print dir(something)
  print my_var.some_field

5) step to the next line of code with "n" or step into a
function/method call with "s" or exit/return from the current
function/method with "r".  I'll also use "l" (ell) to list some
context around the current line so I can tell where I am in the
source code.  This is particularly helpful as I can use the
corresponding line-number(s) to jump to the same line in my editor if
I spot the offending line of code, then edit it.

very rarely, I'll actually set additional breakpoints (optionally
making them conditional) but I *always* have to look up the syntax
for that.

Hopefully that gets you at least to the point where debugging isn't
some laborious task.  Best wishes,

-tkc

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Accessible tools Tim Chase <python.list@tim.thechases.com> - 2015-02-22 13:14 -0600

csiph-web