Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion debugging in eclipse
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ulrich Eckhardt  
View profile  
 More options Nov 15 2012, 8:43 am
Newsgroups: comp.lang.python
From: Ulrich Eckhardt <ulrich.eckha...@dominolaser.com>
Date: Thu, 15 Nov 2012 14:43:26 +0100
Local: Thurs, Nov 15 2012 8:43 am
Subject: Re: debugging in eclipse
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.