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


Groups > comp.lang.python > #79182

Re: How to debug Python IDLE?

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: How to debug Python IDLE?
Date 2014-10-15 22:19 +0100
References <f1fbc7fd-0359-4cc1-b71f-7ec9caee0e12@googlegroups.com> <68679eed-b778-4341-a4c2-9b2ff8b422bb@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.14899.1413408000.18130.python-list@python.org> (permalink)

Show all headers | View raw


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

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


Thread

How to debug Python IDLE? ryguy7272 <ryanshuell@gmail.com> - 2014-10-15 12:09 -0700
  Re: How to debug Python IDLE? Terry Reedy <tjreedy@udel.edu> - 2014-10-15 15:22 -0400
    Re: How to debug Python IDLE? ryguy7272 <ryanshuell@gmail.com> - 2014-10-15 12:36 -0700
      Re: How to debug Python IDLE? MRAB <python@mrabarnett.plus.com> - 2014-10-15 20:52 +0100
      Re: How to debug Python IDLE? Terry Reedy <tjreedy@udel.edu> - 2014-10-15 22:21 -0400
  Re: How to debug Python IDLE? ryguy7272 <ryanshuell@gmail.com> - 2014-10-15 13:45 -0700
    Re: How to debug Python IDLE? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-10-15 22:19 +0100

csiph-web