Java – view global / static / inherited variables in the eclipse debugger

This is a little trouble for me, rising When I debug the program, I can see the variables in the direct scope, but I can't see that the variables are global, static, or inherited by the 'this' class The only way I know how to get these test values is to create a virtual variable to store the variables I want, which is inefficient or elegant within the scope of a given function

Is there a simpler way to view the values of any / all of the three variable types I mentioned in step-by-step debugging?

thank you

Solution

You can use expression view to observe any expression, including static and global variables

Another convenient view is displays view, which allows you to execute arbitrary code

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
分享
二维码
< <上一篇
下一篇>>