Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'from:addr:yahoo.co.uk': 0.04; 'languages,': 0.04; 'subject:IDLE': 0.04; 'subject:Python': 0.06; 'debug': 0.07; 'wednesday,': 0.07; 'debugger': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:How': 0.10; 'python': 0.11; 'language,': 0.12; 'language.': 0.14; 'books': 0.15; 'debugger,': 0.16; 'normally,': 0.16; 'paragraphs,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'spacing': 0.16; 'prevent': 0.16; 'all.': 0.16; 'language': 0.16; 'wrote:': 0.18; 'thanks.': 0.20; 'seems': 0.21; 'code,': 0.22; 'python?': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'url:moin': 0.24; 'java': 0.24; "haven't": 0.24; 'looks': 0.24; "i've": 0.25; '15,': 0.26; 'url:edu': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'wondering': 0.29; "doesn't": 0.30; "i'm": 0.30; 'url:mailman': 0.30; 'code': 0.31; 'easier': 0.31; 'that.': 0.31; 'url:wiki': 0.31; 'yes.': 0.31; 'yourself.': 0.31; 'this.': 0.32; 'worked': 0.33; 'url:python': 0.33; "can't": 0.35; 'but': 0.35; 'controls': 0.36; 'idle': 0.36; 'url:listinfo': 0.36; "i'll": 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'list': 0.37; 'step': 0.37; 'mine': 0.38; 'needed': 0.38; 'to:addr:python-list': 0.38; 'url:2004': 0.39; 'anything': 0.39; 'does': 0.39; 'url:12': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'url:mail': 0.40; 'how': 0.40; 'even': 0.60; 'read': 0.60; 'simple,': 0.60; 'truly': 0.60; 'further': 0.61; "you've": 0.63; 'our': 0.64; 'charset:windows-1252': 0.65; 'life': 0.66; 'here': 0.66; 'line,': 0.68; 'zen': 0.84; 'fight': 0.97 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: How to debug Python IDLE? Date: Wed, 15 Oct 2014 22:19:47 +0100 References: <68679eed-b778-4341-a4c2-9b2ff8b422bb@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-92-18-34-221.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: <68679eed-b778-4341-a4c2-9b2ff8b422bb@googlegroups.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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 61 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1413408000 news.xs4all.nl 2925 [2001:888:2000:d::a6]:42879 X-Complaints-To: abuse@xs4all.nl Path: csiph.com!usenet.pasdenom.info!bete-des-vosges.org!feed.ac-versailles.fr!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Xref: csiph.com comp.lang.python:79182 On 15/10/2014 21:45, ryguy7272 wrote: > On Wednesday, October 15, 2014 3:10:05 PM UTC-4, ryguy7272 wrote: >> I'm wondering how to debug code in IDLE Python 3.4. I found this. >> >> http://www.cs.uky.edu/~paulp/CS115F11/notes/debug/debug.html >> >> >> >> That looks pretty helpful, but mine is nothing like that. All my controls are greyed out. The debugger does basically...nothing. All I get is messages like this. >> >> >> >> [DEBUG ON] >> >>>>> >> >> [DEBUG OFF] >> >>>>> >> >> [DEBUG ON] >> >>>>> >> >> >> >> It doesn't debug anything at all. >> >> >> >> Any idea what's wrong? >> >> Thanks. > > > Yes. exactly. So why is it throwing an error and how can I truly debug it? Normally, you can step through code line by line, but I don't see any way to do this using Python. > > Man, I've been in all kinds of development roles, for over 10 years, using all kinds of languages, and I've never worked with anything as difficult as Python. It seems so simple, but actually nothing works for me. I've read 4 books on Python and I've been working on small snippets of code, for 2 months now. Almost nothing at all has worked for me. > What did you not understand about the answers given by Terry Reedy and MRAB? Why are you using a debugger, I can't remember the last time I needed one with Python? Please don't try to fight the language, use the 1000s of man years experience here to make life easier for yourself. Even if you've no Java experience try reading this http://dirtsimple.org/2004/12/python-is-not-java.html and this http://dirtsimple.org/2004/12/java-is-not-python-either.html to get a feel for Python. If you haven't read the Zen of Python do that as well. I'll let you look that one up :) Further would you please access this list via https://mail.python.org/mailman/listinfo/python-list or read and action this https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing double line spacing and single line paragraphs, thanks. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence