[Tutor] Debugging, other
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:
> 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.
File "<stdin>", line 2
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...
More information about the Tutor