[Tutor] Debugging, other

W W srilyk at gmail.com
Sat Nov 1 18:35:42 CET 2008

On Sat, Nov 1, 2008 at 11:21 AM, Jennifer Miller <jenmiller7 at gmail.com>wrote:

> Hello,
> I would like to step through with debugging in PythonWin, I have added
> this toolbar, but I cannot click on it as an option.  Also, when I
> click run, to define the arguments, do I enter them in the format
> name, name?  Also, when I try to run my code, I get a message at the
> bottom of the screen that says, Failed to run script - syntax error -
> expected an indented block.  I am not sure where I am going wrong here
> - maybe if I could do the debugging, that would help.

It helps to post the exact error message.

For instance:

  File "<stdin>", line 2
    print x
IndentationError: expected an indented block

came from this entered into the interactive interpreter:

>>> for x in xrange(1,10):
... print x

Because after a for statement, it expects an indentation. It's considered
standard to indent with four spaces.

My guess is there's something in your code that caused such an error. The
more information you give us, the better we are able to help you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20081101/edf40350/attachment.htm>

More information about the Tutor mailing list