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


Groups > comp.lang.python > #33382

Re: debugging in eclipse

Newsgroups comp.lang.python
Date 2012-11-15 05:44 -0800
References <b45840eb-f429-4287-905a-76d752d4fe04@googlegroups.com>
Message-ID <cc2ae862-a957-4c98-99b8-d8f1d7516bbb@googlegroups.com> (permalink)
Subject Re: debugging in eclipse
From "Martin P. Hellwig" <martin.hellwig@gmail.com>

Show all headers | View raw


On Thursday, 15 November 2012 12:29:04 UTC, chip...@gmail.com  wrote:
> Hi all!
> 
> 
> 
> I have a stupid problem, for which I cannot find a solution...
> 
> 
> 
> 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.
> 
> 
> 
> 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? (by debug I mean go into it in the debugging mode and execute step by step, inspect the variables and so on.. you know, like it is so easily done in Matlab for example).
> 
> 
> 
> I place a break point in the function, run the debugger and it stars and is terminated immediately. (of course it does not know where to go..)
> 
> 
> 
> So how can I do this? please help!
> 
> 
> 
> Thank you all in advance!

I assume you have at the end of the debugTest.py file something like this:

if __name__ == '__main__':
   test()

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