Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » how to watch the return value
how to watch the return value [message #292733] Tue, 11 October 2005 15:49 Go to next message
Eclipse UserFriend
Originally posted by: jzhang.informatica.com

While debugging, I often find it necessary to check the return value. Does
ecplise debugger provides someway to check the return value immediately
before the function return? Thanks a lot
Re: how to watch the return value [message #292736 is a reply to message #292733] Tue, 11 October 2005 17:16 Go to previous message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

You can evaluate any expression in the debugger by highlighting it and pressing 'Display' (or 'Inspect') if you need an inspector. However, since this evaluates the expression again, if there is any state change that occurs then you might get weird behaviour.

You can also use 'watch' expressions, which are the value of an expression that gets updated as the stack trace is stepped through. Again, watch out for methods that have side-effects if you're using this.

I don't believe there's any way of finding out what the return value specifically is, unless you're in the caller stack and do 'evaluate' on the expression called after return.
Previous Topic:Access Restriction on API
Next Topic:ClearCase plug-in Eclipse for Eclipse 3.1.X - Windows
Goto Forum:
  


Current Time: Mon Jun 16 07:51:50 EDT 2025

Powered by FUDForum. Page generated in 0.28031 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top