Hello,
I am debugging a piece of code in CVI2017; the code is a short function with local and global variables. I have a breakpoint in this function and once the debugger stops at the breakpoint I want to inspect some variable values.
View Variable View works as expected if the cursor is positioned over a local variable: the Variable and Call Stack window opens and the line with the selected variable is highlighted.
For some reason this does not work when I want to see the variable value that is defined in the same project but in a different file, i.e. as external.
Any suggestions what I should do to see all my variable values?
Thanks in advance!
Solved! Go to Solution.
To elaborate a bit more, the sample code looks like that:
void TestFunction ( void )
{
int test = 0;
test = extern_test;
return;
}
Now, right clicking and selecting 'View Variable Value' on the local variable test works (i.e., brings up the Variables window and highlights the variable), right-clicking on the externally defined variable extern_test does not bring up the Variables window. This seems to contradict the description in the manual ![]()
With the simple project I attach it works for me. Is your use case different?
Hi Constantin,
with your project everything works as expected...
Thanks for your interest, now I will have to search for the differences...
Actually it may also happen to global variables that are not external, hm...
: right clicking and selecting 'View Variable Value' does not bring up the Variables window. So far I have not found the reason why sometimes Variable view works and sometimes not (it is not an especially memory hungry project)
In the mean time the issue has been reproduced by NI, they have assigned CAR #703092
How do I see the details of the CAR and solution?
For every release of CVI there is a list of bug fixes / resolved issues, for 2019 this list is https://www.ni.com/de-de/support/documentation/bugs/19/-labwindows--cvi---2019-bug-fixes.html
Although in this specific case no more details are given, the bug is gone and I am happy