debugging in eclipse

Ulrich Eckhardt ulrich.eckhardt at dominolaser.com
Thu Nov 15 08:43:26 EST 2012


Am 15.11.2012 13:29, schrieb chip9munk at 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




More information about the Python-list mailing list