I recently have learnt about debugging inside vscode where I am trying to debug a simple cpp file.
#include <bits/stdc++.h>
using namespace std;
int main()
{
bool test = true;
int i = 0;
vector<int> v;
while (test)
{
if (i == 5)
test = false;
else
{
cout << i << " ";
i++;
v.push_back(i);
}
}
return 0;}
like variable i, I want to see the values inside vector v at any point of execution. irrespective of returning values, the debugger is returning the address for vector(v). Is there a way to achieve the same?
I tried the same thing on some online cpp debugger where I can see this particular functionality. online cpp debugger