Java – using the interactive console (debug view) in eclipse

Some threads [1] ask how to use the interactive console in eclipse because you cannot enter anything in this console

It is suggested that you can "display view" to execute code

So what is the purpose of "interactive console"?

[1] How to use Eclipse interactive console in debug

Solution

Early answer (accepted but incorrect):

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.

Correct answer look at the following answer @ mmey

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>