Showing function return value (Was: Debugging with KDevelop)

Vladimir Prus ghost at cs.msu.su
Mon Oct 24 09:10:08 UTC 2005


On Monday 24 October 2005 00:57, Andreas Pakulat wrote:

> > 2) You cannot see the return values of the functions. This is a bit
> > problematic specially when the returned value is used directly in other
> > expressions, without storing it in a variable...
>
> Hmm, MSVC6 does allow this? I didn't even see this in Java IDE's and
> thus thought that it's pretty hard to do it. On the other hand I haven't
> thoroughly searched for. Anyway, if the return value of one function is
> used as argument into another, you only have to step into the "outer"
> function and can see the value from the argument.

gdb does this, out of the box. If you run "finish" it will report the return 
value.

This is in bugzilla: 
   http://bugs.kde.org/show_bug.cgi?id=108401

The implementation should be simple, but it's not clear how to show this. 
Should we add

  "return value from foo" to variables list

and add new "return value from ..." as we continue, or just show the last 
return value in the variables list?

- Volodya





More information about the KDevelop-devel mailing list