06-04-2018 10:09 AM
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.
06-05-2018 03:39 AM
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
06-05-2018 09:47 AM
With the simple project I attach it works for me. Is your use case different?
06-05-2018 10:55 AM
Hi Constantin,
with your project everything works as expected...
Thanks for your interest, now I will have to search for the differences...
06-14-2018 08:44 AM
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)
07-01-2018 12:54 AM
In the mean time the issue has been reproduced by NI, they have assigned CAR #703092
05-22-2019 09:24 AM
11-18-2020 12:03 PM
How do I see the details of the CAR and solution?
11-18-2020 12:57 PM
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 😁