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


Groups > comp.lang.python > #63056

Re: Debugging on the Mac question.

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'programmer': 0.03; 'debug': 0.07; 'debugging': 0.07; 'converts': 0.09; 'debugger': 0.09; 'output,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'windows': 0.15; 'debugger.': 0.16; 'eclipse': 0.16; 'it;': 0.16; 'kern': 0.16; 'pdb': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'scripts.': 0.16; 'subject:question.': 0.16; 'underlying': 0.16; 'variables,': 0.16; 'all.': 0.16; 'wrote:': 0.18; 'looked': 0.18; '(the': 0.22; 'machine': 0.22; 'team,': 0.22; 'header:User-Agent:1': 0.23; 'interpret': 0.24; 'sean': 0.24; 'java': 0.24; 'script': 0.25; 'switch': 0.26; 'least': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; "doesn't": 0.30; 'robert': 0.30; 'app.': 0.31; 'invoke': 0.31; 'perl': 0.31; 'text': 0.33; 'worked': 0.33; 'url:python': 0.33; 'running': 0.33; 'level.': 0.33; 'mac': 0.33; 'reader': 0.33; 'screen': 0.34; 'subject:the': 0.34; 'something': 0.35; 'really': 0.36; 'idle': 0.36; 'url:org': 0.36; 'step': 0.37; 'url:library': 0.38; 'window': 0.38; 'to:addr :python-list': 0.38; 'ability': 0.39; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'break': 0.61; 'full': 0.61; 'url:3': 0.61; 'simple': 0.61; 'our': 0.64; 'road': 0.65; 'world': 0.66; 'biggest': 0.67; 'believe': 0.68; 'readers': 0.68; 'eco': 0.84; 'points,': 0.84; 'preventing': 0.84; 'speech': 0.84; 'terrible': 0.84; 'feet': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Robert Kern <robert.kern@gmail.com>
Subject Re: Debugging on the Mac question.
Date Fri, 03 Jan 2014 13:50:03 +0000
References <3D25D30F-A973-41EE-9F20-24E2013F042C@gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 213.1.240.226
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
In-Reply-To <3D25D30F-A973-41EE-9F20-24E2013F042C@gmail.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.4851.1388757022.18130.python-list@python.org> (permalink)
Lines 28
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1388757023 news.xs4all.nl 2965 [2001:888:2000:d::a6]:32793
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:63056

Show key headers only | View raw


On 2014-01-03 04:17, Sean Murphy wrote:
> Team,
>
>
> I am a Vision Impaired programmer on the Mac and Window platforms. I have started to learn Python. The biggest road block I have is the ability of debugging my simple scripts. The IDLE program does not work with the screen readers I use on the Mac or Windows. A screen reader is a program that grabs the text on the screen and converts it into speech output, at least this is the 50000 feet explanation.  I cannot see the screen at all.
>
> I have looked at eclipse and it doesn't work with Voice-Over (the screen reader on the Mac). I have java issues on my windows machine preventing me running this app.
>
> If I use $python -d script.py the debugger doesn't seem to trigger on the mac.
>
> So how I can perform a debug on a script so I can step through it, set up break points, watch variables, etc.
>
> It is really annoying me, since under Perl I just added the -d switch and had a full debugger that worked at the console level.

Python also has a console debugger. -d does not invoke it; -d is for something else.

   $ python -m pdb myscript.py

http://docs.python.org/3.3/library/pdb

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

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


Thread

Re: Debugging on the Mac question. Robert Kern <robert.kern@gmail.com> - 2014-01-03 13:50 +0000

csiph-web