I have used Visual Studio debugger and one of the perks of using Visual Studio is I can see the memory space while debugging, I can see the variables being created on specific addresses. Is there any way to see actual memory space while debugging C++ code or C code in Linux.
Thanks in advance.
EDIT:
I am sorry if my question was not clear, I am talking about getting the snapshot of the main memory to check variables being created. I have attached a screenshot of the basic code below.