Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #33387

Re: debugging in eclipse

From Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com>
Newsgroups comp.lang.python
Subject Re: debugging in eclipse
Date 2012-11-15 14:43 +0100
Message-ID <u48fn9-s92.ln1@satorlaser.homedns.org> (permalink)
References <b45840eb-f429-4287-905a-76d752d4fe04@googlegroups.com>

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

debugging in eclipse chip9munk@gmail.com - 2012-11-15 04:29 -0800
  Re: debugging in eclipse Roy Smith <roy@panix.com> - 2012-11-15 07:49 -0500
    Re: debugging in eclipse chip9munk@gmail.com - 2012-11-15 05:43 -0800
  Re: debugging in eclipse Dave Angel <d@davea.name> - 2012-11-15 08:41 -0500
    Re: debugging in eclipse chip9munk@gmail.com - 2012-11-15 05:45 -0800
    Re: debugging in eclipse chip9munk@gmail.com - 2012-11-15 05:45 -0800
    Re: debugging in eclipse Roy Smith <roy@panix.com> - 2012-11-15 08:54 -0500
      Re: debugging in eclipse aahz@pythoncraft.com (Aahz) - 2012-11-15 07:56 -0800
        Re: debugging in eclipse Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-11-15 17:05 +0000
          Re: debugging in eclipse alex23 <wuwei23@gmail.com> - 2012-11-15 17:10 -0800
            Re: debugging in eclipse Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-11-16 10:30 +0000
  Re: debugging in eclipse "Martin P. Hellwig" <martin.hellwig@gmail.com> - 2012-11-15 05:44 -0800
    Re: debugging in eclipse chip9munk@gmail.com - 2012-11-15 05:46 -0800
      Re: debugging in eclipse Alister <alister.ware@ntlworld.com> - 2012-11-15 14:21 +0000
        Re: debugging in eclipse chip9munk@gmail.com - 2012-11-15 06:28 -0800
  Re: debugging in eclipse Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2012-11-15 14:43 +0100
    Re: debugging in eclipse chip9munk@gmail.com - 2012-11-15 06:27 -0800

csiph-web