The way to do this in Eclipse is to select the code that you want to see a return value for and invoke the "inspect" functions. This will cause the code to be execute and the result is displayed in a pop-up, which you can inspect. Although the code executes, it does not move the current line of code, so you can execute the line again when you hit step. Additionally, you can open the "Display" view while in the debugger and execute any arbitrary code that would be valid at the currently paused line, which allows you to copy any bit of code in the editor to this view and then execute it and play with the results.
Check out this bit of the help file for more information: http://help.eclipse.org/help32/topic/org.eclipse.jdt.doc.user/tasks/task-eva luating_expressions.htm -Nathan > -----Original Message----- > From: Thorbjørn Ravn Andersen [mailto:[EMAIL PROTECTED] > Sent: Friday, July 14, 2006 3:29 AM > To: harmony-dev@incubator.apache.org > Subject: Re: [classlib] HARMONY-820 (beautifying of java.beans classes) > > Geir Magnusson Jr skrev den 11-07-2006 08:23: > > return getValue((ObjectNode) nodes.get(oldInstance)); > > } > > > > > > (added newline after method decl, space after the if, and removed spaces > > inside getValue()) > > > When using the Eclipse debugger it is hard to see what a given method > returns (I may have missed a stack view though :) so by explicitly > placing the return value in a variable, and returning it, you have a > line you can breakpoint where the return value is available. > > For that reason alone I suggest that this is written as: > > result = getValue((ObjectNode) nodes.get(oldInstance)); > return result; > > I like your formatting style though :) > > -- > Thorbjørn > > > > --------------------------------------------------------------------- > Terms of use : http://incubator.apache.org/harmony/mailing.html > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]