You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
While debugging a C program, although variables are detected, their current value is not displayed. Instead, messages appear informing you that the variable object is not found.
The notification messages say somethong like:
Could not get global variable information:
from var-update --all-values var_global_<variable_name>
or
Could not get global variable information:
from var-update --all-values var_local_<variable_name>
And this is the very simple code I'm trying to debug, as a tutorial
// tutorial.c
// Daniel Gutierrez. 16/01/22. audobra@gmail.com
// Dot product code to learn the PlatformIO tools
#define DIM 3
double dotproduct(int n, double a[], double b[]) {
volatile int i;
double sum = 0;
for (i=0; i<n; i++) {
sum += a[i]*a[i];
}
return sum;
}
int main(void) {
double x[DIM] = {3, 4, 5}; // x is an array of size 3(DIM)
double y[DIM] = {1, 2, 3}; // same as y
double dot;
dot = dotproduct(DIM, x, y);
return dot;
}
The text was updated successfully, but these errors were encountered:
Hi,
While debugging a C program, although variables are detected, their current value is not displayed. Instead, messages appear informing you that the variable object is not found.
The notification messages say somethong like:
or
Any hint or help will be appreciated. Thank you!
Some details about the system:
This is my platformio.ini:
And this is the very simple code I'm trying to debug, as a tutorial
The text was updated successfully, but these errors were encountered: