David
David

Reputation: 1237

How can I see global variables when debugging C/C++ code in Eclipse?

I used to be able to see global variables in the Variables view when debugging C/C++ code in Eclipse. Now, I only see local variables, and the "Add Global Variables..." option (the icon was a globe with eyeglasses over it) is gone:

enter image description here

I can manually add an expression, but this is inconvenient. Am I missing something, or was this removed intentionally?

I'm using Eclipse 2019-12 with Eclipse CDT 9.10.0.201912051559 on Windows 10.

Upvotes: 2

Views: 1141

Answers (1)

user6223604
user6223604

Reputation:

Global variables are not shown in the Variables view.

Instead, you can add the ones you are interested in within the Expressions view. You can follow this link, it can help you : https://bugs.eclipse.org/bugs/show_bug.cgi?id=219040

Upvotes: 1

Related Questions