在Eclipse中使用Interactive Console(调试视图) [英] What is the use of Interactive Console in Eclipse (Debug view)

查看:137
本文介绍了在Eclipse中使用Interactive Console(调试视图)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有些线程[1]询问如何在Eclipse中使用Interactive Console,因为您无法在此控制台中输入任何内容。

Some threads [1] asked how to use the "Interactive Console" in Eclipse since you cannot type anything in this console.

有些建议您可以显示视图执行代码。

Some suggested you can "Display view" to execute code.

那么那么交互式控制台的目的是什么?

So what is the purpose of the "Interactive Console" then?

[1 ] 如何在调试中使用Eclipse交互式控制台

推荐答案

EARLIER ANSWER(接受但不正确)

The interactive console allows you to execute some extra code, while debugging, when stopped at via a `breakpoint`.

This is a really beneficial feature when you are debugging and suddenly want to change the value of variable, execute a sysout or some utility function. 

正确答案看下面的答案@mmey 。

FOR Correct Answer look at the answer below by @mmey.

这篇关于在Eclipse中使用Interactive Console(调试视图)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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