在Eclipse中调试时,可以找到返回值吗? [英] Can I find out the return value before returning while debugging in Eclipse?

查看:296
本文介绍了在Eclipse中调试时,可以找到返回值吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在行运行之后,指令指针返回到调用函数之前,可以看到方法的返回值吗?

Is it possible to see the return value of a method after the line has been run and before the instruction pointer returns to the calling function?

我正在调试代码我不能修改(阅读:不想重新编译第三方库),有时它跳转到没有源代码或返回表达式有副作用阻止我能够在显示标签中运行表达式。

I am debugging code I can't modify (read: don't want to re-compile a third party library), and sometimes it jumps to code I don't have source to or the return expression has side effects that stop me being able to just run the expression in the Display tab.

通常,复合语句中使用返回值,因此视图将永远不会显示值(因此希望在控件返回到调用函数之前看到结果)。

Often the return value is used in a compound statement, and so the Variables view will never show me the value (hence wanting to see the result before control returns to the calling function).

更新:我不能使用表达式查看器,因为语句中有副作用。

UPDATE: I can't use the expression viewer as there are side-effects in the statement.

推荐答案

此功能被添加到Eclipse版本4.7 M2在 Eclipse bug 40912

This feature was added to Eclipse version 4.7 M2 under Eclipse bug 40912.

这篇关于在Eclipse中调试时,可以找到返回值吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆