On Aug 13, 4:46 pm, Tzadik.Vanderh...@gmail.com wrote:
> > > When using the Eclipse debugger, is there any way to see the value
> > > that was just returned (or is about to be returned) from a method?
[quoted text clipped - 15 lines]
>
> - Show quoted text -
Maybe I did not get your question right, but you can always assign the
return value to a variable that can be watched via debug.
Assuming you mean a complex expression like :
return Math.sin(toRadians(x))*x+y^x%2;
can be replaced with :
double d = Math.sin(toRadians(x))*x+y^x%2;
return d;
-cheers,
Manish
Ben Phillips - 14 Aug 2007 21:17 GMT
> double d = Math.sin(toRadians(x))*x+y^x%2;
> return d;
Wouldn't that be
double d = Math.sin(toRadians(x))*x+y**x%2;
return d;
?
;)
(One does not ordinarily use xor when working with doubles.)
Lew - 14 Aug 2007 22:32 GMT
>> double d = Math.sin(toRadians(x))*x+y^x%2;
>> return d;
[quoted text clipped - 9 lines]
>
> (One does not ordinarily use xor when working with doubles.)
No, because "**" is not Java.

Signature
Lew
Ben Phillips - 15 Aug 2007 03:37 GMT
>>> double d = Math.sin(toRadians(x))*x+y^x%2;
>>> return d;
[quoted text clipped - 11 lines]
>
> No, because "**" is not Java.
It was a joking reference to the recent Java 7 discussion where several
people suggested adding it for exponentiation. For now of course you'd
have to use Math.pow()...
Larry - 15 Aug 2007 14:51 GMT
> On Aug 13, 4:46 pm, Tzadik.Vanderh...@gmail.com wrote:
>
[quoted text clipped - 31 lines]
> -cheers,
> Manish
I know... but I was hoping the debugger would have a way to look at
the return value without having to go in and change the code.