How to see static or global variables in Eclipse C

2019-04-09 04:52发布

问题:

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