在Eclipse中调试(Java);在破坏查看值时不能将鼠标悬停在变量上 [英] Debugging in Eclipse (Java); can't hover over a variable when breaking to view the value

查看:88
本文介绍了在Eclipse中调试(Java);在破坏查看值时不能将鼠标悬停在变量上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Eclipse编写Java代码(适用于Android),我试图像往常一样调试代码(我通常会做C#)。

Im using Eclipse to code Java (for Android) and Im trying to debug the code as I normally do (i normally do C# though).

从我的内容可以说,Eclipse中的调试确实非常糟糕。我不知道我做错了什么,但它似乎很糟糕。

From what I can tell, debugging in Eclipse is really REALLY bad. I dont know if Im doing something wrong, but it seems to be just awful.

这是正在运行的代码,我得到某种异常而且我想要通过打破catch-clause并查看变量e来查看异常是什么:

This is the code that is being run, I get some sort of exception and I want to see what the Exception is, by breaking in the "catch"-clause and viewing the variable "e":

try
{
    ConnectivityManager connectivityManager = (ConnectivityManager) this.getSystemService( Context.CONNECTIVITY_SERVICE );
    NetworkInfo activeNetInfo = connectivityManager.getActiveNetworkInfo();
    NetworkInfo mobNetInfo = connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);
    NetworkInfo.State state = mobNetInfo.getState();
}
catch(Exception e)
{
    Log.v("MyAp", e.toString()); // I break on this line, and want to see what e is
}

问题是我不能通过将鼠标放在它上面看到e(就像我在我心爱的Visual Studio中一样)。

the problem is that I cannot see "e" by holding my mouse over it (as I can in my beloved Visual Studio).

现在,我知道我可以打开Variables选项卡,其中列出了可以从我打破时可以访问的所有变量,但这有点太糟糕了。

Now, I know that I can bring up the tab "Variables" which lists all variables accessible from when Im breaking, but thats sort of sucky.

我刚才知道 - Eclipse没有办法悬停你感兴趣的变量,就像在Visual Studio中一样?

Just so I know - Eclipse has no way of "hovering" over the variable you are interested in, as in Visual Studio?

编辑1:
感谢您的回答。但是,仍然有相同的问题=(

EDIT 1: Thanks for the answers. However, still have the same problem =(

推荐答案

据我所知,你必须在Debug视图中按顺序将鼠标悬停在对象上并查看它们的属性。至少这就是我的Eclipse 3.4副本的工作原理。

As far as I can tell, you have to be in Debug view in order to hover over objects and see their properties. At least that's how my copy of Eclipse 3.4 works.

当然,你还需要在Debug视图中才能拥有这一步进入,继续,继续等......按钮......

Of course, you also need to be in Debug view to have the Step Into, Step Over, Continues, etc... buttons...

这篇关于在Eclipse中调试(Java);在破坏查看值时不能将鼠标悬停在变量上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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