Eclipse:改进mouseOver上的调试和显示变量值 [英] Eclipse: Improve debugging and display variable values on mouseOver

查看:123
本文介绍了Eclipse:改进mouseOver上的调试和显示变量值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在调试时是否可以在Eclipse中查看变量值?现在当我鼠标悬停一个变量,我得到的是定义。
例如对于[int mLastView],我得到[com.company.samples.MyClass.mLastView],而不是 1 。分配给它的值。

Is it possible to view variable values in Eclipse when debugging? Right now when I "mouse over" a variable all I get is the definition. e.g. for [int mLastView] I get [com.company.samples.MyClass.mLastView] instead of 1. The value that was assigned to it.

此外,还有没有改进Eclipse中的调试?

Also, is there anyway to improve debugging in Eclipse?

对于启动器:使VS中的断点可见(见下文)?

For starter: making the breakpoints visible as in VS (see below)?

Eclipse Break点

Eclipse Break Point http ://i28.tinypic.com/hwmtcx.png

Visual Studio Break Point

Visual Studio Break Point http://i32.tinypic.com/359egbp.png

推荐答案

我发布在Stack Overflow上,其中一个建议是进入Window - > Preferences - > Java - >编辑器 - > Hovers并选择变量值选项并分配一个修饰符。

I posted this over at Stack Overflow and one of the suggestions was to go into Window -> Preferences -> Java -> Editor -> Hovers and select the Variable Values option and assign a modifier.

当我第一次尝试解决这个问题时,这是一个选项我看着,但奇怪的是,没有可变值偏好可用,它缺少。一旦我的修复上面被应用了,它神奇地出现了:

When I was first trying to resolve this issue, this was one of the options I looked at, but oddly enough, there was no Variable Values preference available, it was missing. Once my "fix" above was applied, it magically appeared:

点击查看图片 Broken Link

这篇关于Eclipse:改进mouseOver上的调试和显示变量值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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