debugging in eclipse

Ulrich Eckhardt ulrich.eckhardt at
Thu Nov 15 14:43:26 CET 2012

Am 15.11.2012 13:29, schrieb chip9munk at
> I have a python module, lets call it
> and it contains:
> def test():
>      a=1
>      b=2
>      c=a+b
>      c
> so as simple as possible.

Should that be "return c" instead of "c" on a line?

> Now I would like to debug it in eclipse.. (I have pydev and all) so
> the question is how do I debug the test function?
> I place a break point in the function, run the debugger and it stars
> and is terminated immediately.

For a start, I would try to actually call the function. Just add 
"print(test())" after the function definition.


More information about the Python-list mailing list