debugger

Xavier Ho contact at xavierho.com
Sat Aug 22 04:53:59 EDT 2009


On Sat, Aug 22, 2009 at 6:17 PM, flagmino <ray.belanger at gmail.com> wrote:

> To get familiar with the debugger, I have loaded this program:
>
> import math
>
> def s1(x, y):
>   a = (x + y)
>   print("Answer from s1"), a
>   return
>
> def s2(x, y):
>   b = (x - y)
>   print("This comes from s2"), b
>   #print z
>   print("call from s2: "), s1(x, y)
>   return
>
> I am trying to debug:
> I press shift-F9 and F7. I end up in the interpreter where I enter s2
> (1, 2).
>
> >From that point if I press F7, the program restart all over.
> If I press Enter, the program gets out of debug mode.
>
> Please help me figuring out how I can use the dbugger. You are welcome
> to send a sound file if this is easier for you.
>
> Thanks
>
> ray
> --
> http://mail.python.org/mailman/listinfo/python-list


Sorry, but which debugger are you referring to?

Also, note that you're printing s1(x,y) which is returning nothing. Not sure
why you want to do that, but just mentioning it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090822/78a89743/attachment-0001.html>


More information about the Python-list mailing list