Am 15.11.2012 13:29, schrieb chip9m...@gmail.com:
I have a python module, lets call it debugTest.py.

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.

Uli

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to