Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #33380
| Date | 2012-11-15 08:41 -0500 |
|---|---|
| From | Dave Angel <d@davea.name> |
| Subject | Re: debugging in eclipse |
| References | <b45840eb-f429-4287-905a-76d752d4fe04@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3714.1352986928.27098.python-list@python.org> (permalink) |
On 11/15/2012 07:29 AM, chip9munk@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 don't know Eclipse, but you probably have to have some top-level code in your program. As it stands, it's just an importable module, doing nothing useful when you run it. Add a call to test() to the end of the file, and it might do better. I'd also add a print statement, just to assure yourself that it's running. -- DaveA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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