问题
I have been trying to figure out how to display static variables in the eclipse variable window for the CDT and can't figure out how. The menu button for the CDT doesn't seem to have the java->globals menu. How do I display static/global variables in eclipse CDT debugger?
回答1:
Window -> Show View -> Expressions
You can add any expression there, so also global variables.
回答2:
Arrow down button > Java > Show Constants / Show Static Variables
来源:https://stackoverflow.com/questions/4434107/how-to-see-static-or-global-variables-in-eclipse-cdt