如何使用Eclipse的显示视图进行调试? [英] How to use Eclipse's Display View for Debug?

查看:637
本文介绍了如何使用Eclipse的显示视图进行调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在下面的链接中,它解释说,显示视图允许您以剪贴簿类型的方式操纵实时代码(参见图8)。要操纵变量,只需在显示视图中键入变量的名称,然后将会有一个熟悉的内容帮助。

At the link below it explains that the "display view allows you to manipulate live code in a scrapbook type fashion (see Figure 8). To manipulate a variable, simply type the name of the variable in the Display view, and you'll be greeted with a familiar content assist."

http://www.ibm.com/developerworks/library/os-ecbug/

但是,我无法使其正常工作。我打开视图,但所有按钮都被禁用。我已经尝试在视图中放置代码,在视图中选择代码,在其他视图中选择代码,同时运行并且不运行调试,但是在视图上启用的唯一按钮是清除控制台。

However, I am having trouble getting it to work. I have the view open but all the buttons are disabled. I have tried putting code in the view, selecting code in the view, selecting code in other views, while running and while not running debug, but the only button that is ever enabled on the view is "clear console".

关于我做错了什么意见?

Suggestions on what I am doing wrong?

推荐答案

您可以查看显示视图,您可以在运行时检查各种变量和布尔表达式。当你的调试器被冻结在一个断点上时,开始输入一个对象变量的名称,当你开始调用方法或者字段以达到更深层次的数据结构时,你将获得自动完成功能。然后当您选择/标记您需要检查的部分或所有内容时,显示视图上的按钮将被单击。您可以随时在选择上执行 Ctrl + Shift + I 快捷方式,以查看当前选择的运行时状态,即变量,对象,布尔exrepssion等。

You can view the Display view as a place where you can inspect all sorts of variables and boolean expressions during runtime. While your debugger is frozen on a breakpoint start typing the name of an object variable for instance and you'll get autocomplete functionality as you start calling methods or fields to reach deeper class datastructures. Then when you select/mark the portion you need to inspect or everything, the buttons on the Display view will be clickable. You can always perform the Ctrl+Shift+I shortcut on the selection to view what's the current runtime state of your selection i.e. variable, object, boolean exrepssion etc

这篇关于如何使用Eclipse的显示视图进行调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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